aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-09-15 07:19:53 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-15 07:19:53 -0700
commit1dfec74d6babf41167b7c740290a091ac50c5f51 (patch)
treef3ae0a480f064c1a062ecaeb7dfd4ddb2ec530f9 /samplecode
parent39eaf5f9fd71183da5c3531cf4ce27b3161fcd60 (diff)
Fix SampleApp compilation with skia_gpu=0
Diffstat (limited to 'samplecode')
-rw-r--r--samplecode/SampleApp.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index 4c930c247b..ee2b6e379d 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 {