From 1e7281675dad0d3c18986c178b995a5c1154cc16 Mon Sep 17 00:00:00 2001 From: "senorblanco@chromium.org" Date: Wed, 26 Oct 2011 21:00:37 +0000 Subject: Fix cmdline argument passing in SampleApp/Mac. When SampleApp was ported to Cocoa, it lost the ability to pass a test name on the command line. Fix it. Review URL: http://codereview.appspot.com/5328042/ git-svn-id: http://skia.googlecode.com/svn/trunk@2538 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/utils/mac/SkSampleNSView.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/utils/mac/SkSampleNSView.mm b/src/utils/mac/SkSampleNSView.mm index 0d3abd69d9..242544fa69 100644 --- a/src/utils/mac/SkSampleNSView.mm +++ b/src/utils/mac/SkSampleNSView.mm @@ -8,11 +8,12 @@ #import "SkSampleNSView.h" #include "SampleApp.h" +#include @implementation SkSampleNSView - (id)initWithDefaults { if (self = [super initWithDefaults]) { - fWind = new SampleWindow(self, NULL, NULL, NULL); + fWind = new SampleWindow(self, *_NSGetArgc(), *_NSGetArgv(), NULL); } return self; } -- cgit v1.2.3