Revision ee76cb8f
Added by Leszek Koltunski about 9 years ago
| src/main/java/org/distorted/examples/plainmonalisa/RenderThread.java | ||
|---|---|---|
| 25 | 25 |
import android.opengl.EGLSurface; |
| 26 | 26 |
import android.opengl.GLES20; |
| 27 | 27 |
import android.os.Looper; |
| 28 |
import android.os.Trace; |
|
| 29 | 28 |
import android.util.Log; |
| 30 | 29 |
import android.view.Surface; |
| 31 | 30 |
import android.view.SurfaceHolder; |
| ... | ... | |
| 55 | 54 |
private volatile RenderHandler mHandler; |
| 56 | 55 |
|
| 57 | 56 |
// Used to wait for the thread to start. |
| 58 |
private Object mStartLock = new Object(); |
|
| 57 |
private final Object mStartLock = new Object();
|
|
| 59 | 58 |
private boolean mReady = false; |
| 60 | 59 |
private volatile SurfaceHolder mSurfaceHolder; // may be updated by UI thread |
| 61 | 60 |
private EglCore eglCore; |
| ... | ... | |
| 201 | 200 |
} |
| 202 | 201 |
catch(Exception ex) |
| 203 | 202 |
{
|
| 204 |
Log.e("MonaLisa", ex.getMessage() );
|
|
| 203 |
Log.e("PlainMonaLisa", ex.getMessage() );
|
|
| 205 | 204 |
} |
| 206 | 205 |
} |
| 207 | 206 |
|
Also available in: Unified diff
Tidy up 'PlainMoanLisa'