Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1568)

Unified Diff: samplecode/SampleApp.cpp

Issue 2347593002: Fix SampleApp compilation with skia_gpu=0 (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/deferredtextureimage.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleApp.cpp
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index 4c930c247ba6cae70960c8148178f204e5e1a3f1..ee2b6e379dc6c7e4a6bbaf2f72f66eed8862845d 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -372,7 +372,11 @@ public:
}
int numColorSamples() const override {
+#if SK_SUPPORT_GPU
return fMSAASampleCount;
+#else
+ return 0;
+#endif
}
int getColorBits() override {
« no previous file with comments | « gm/deferredtextureimage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698