diff options
author | senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-06-28 19:44:03 +0000 |
---|---|---|
committer | senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-06-28 19:44:03 +0000 |
commit | 78b8253c0a389a484e15439722e35a1658eb3b01 (patch) | |
tree | 732fb5f2f8655c841de93343a1a26417a1d79533 /gpu | |
parent | 4809fc862957010dad610c68bdff5058d8b16a4c (diff) |
Parse SampleApp command line for a test name. If an argument is passed to
SampleApp on the command line, interpret it as a test name. If it's a valid
test, open that test at startup.
Review URL: http://codereview.appspot.com/4661054/
git-svn-id: http://skia.googlecode.com/svn/trunk@1742 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/src/ios/SkUIView.mm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gpu/src/ios/SkUIView.mm b/gpu/src/ios/SkUIView.mm index 8cd6c7745e..58550ae19f 100644 --- a/gpu/src/ios/SkUIView.mm +++ b/gpu/src/ios/SkUIView.mm @@ -52,7 +52,7 @@ static bool should_draw() { static float gScreenScale = 1; -extern SkOSWindow* create_sk_window(void* hwnd); +extern SkOSWindow* create_sk_window(void* hwnd, int argc, char** argv); #define kREDRAW_UIVIEW_GL "sk_redraw_uiview_gl_iOS" @@ -155,7 +155,8 @@ static FPSState gFPS; fBackend = kGL_Backend; fUseWarp = false; fRedrawRequestPending = false; - fWind = create_sk_window(self); + // FIXME: If iOS has argc & argv, pass them here. + fWind = create_sk_window(self, 0, NULL); fWind->setConfig(SKWIND_CONFIG); fMatrix.reset(); fLocalMatrix.reset(); |