Index: samplecode/SampleApp.cpp |
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp |
index 287639ad88b2523f393316f3ad2a0f22b5598380..53e15a5fdfd2ce40518767185fba9b00e13ce05d 100644 |
--- a/samplecode/SampleApp.cpp |
+++ b/samplecode/SampleApp.cpp |
@@ -386,7 +386,9 @@ SkGMSampleViewFactory::SkGMSampleViewFactory(GMFactoryFunc func) |
} |
SkView* SkGMSampleViewFactory::operator() () const { |
- return new GMSampleView(fFunc(NULL)); |
+ skiagm::GM* gm = fFunc(NULL); |
+ gm->setMode(skiagm::GM::kSample_Mode); |
+ return new GMSampleView(gm); |
} |
SkViewRegister* SkViewRegister::gHead; |