Index: platform_tools/android/app/src/com/skia/SkiaSampleRenderer.java |
diff --git a/platform_tools/android/app/src/com/skia/SkiaSampleRenderer.java b/platform_tools/android/app/src/com/skia/SkiaSampleRenderer.java |
index d8fb8845b47f12fc58809c9f5fa9a5d53f926db7..55257094cdd090415a2a0e02ebb75cbdc0626e24 100644 |
--- a/platform_tools/android/app/src/com/skia/SkiaSampleRenderer.java |
+++ b/platform_tools/android/app/src/com/skia/SkiaSampleRenderer.java |
@@ -20,9 +20,11 @@ public class SkiaSampleRenderer implements GLSurfaceView.Renderer { |
private final SkiaSampleView mSampleView; |
private Handler mHandler = new Handler(); |
private int mMSAASampleCount; |
+ private String mCmdLineFlags; |
- SkiaSampleRenderer(SkiaSampleView view) { |
+ SkiaSampleRenderer(SkiaSampleView view, String cmdLineFlags) { |
mSampleView = view; |
+ mCmdLineFlags = cmdLineFlags; |
} |
@Override |
@@ -49,7 +51,8 @@ public class SkiaSampleRenderer implements GLSurfaceView.Renderer { |
gl.glClearStencil(0); |
gl.glClear(GL10.GL_STENCIL_BUFFER_BIT); |
- init((SkiaSampleActivity)mSampleView.getContext(), mMSAASampleCount); |
+ |
+ init((SkiaSampleActivity)mSampleView.getContext(), mCmdLineFlags, mMSAASampleCount); |
} |
// Called by JNI and the view. |
@@ -89,7 +92,7 @@ public class SkiaSampleRenderer implements GLSurfaceView.Renderer { |
mSampleView.requestRender(); |
} |
- native void init(SkiaSampleActivity activity, int msaaSampleCount); |
+ native void init(SkiaSampleActivity activity, String flags, int msaaSampleCount); |
native void term(); |
native void draw(); |
native void updateSize(int w, int h); |