diff options
author | brianosman <brianosman@google.com> | 2016-09-15 07:19:53 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-15 07:19:53 -0700 |
commit | 1dfec74d6babf41167b7c740290a091ac50c5f51 (patch) | |
tree | f3ae0a480f064c1a062ecaeb7dfd4ddb2ec530f9 /samplecode | |
parent | 39eaf5f9fd71183da5c3531cf4ce27b3161fcd60 (diff) |
Fix SampleApp compilation with skia_gpu=0
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2347593002
Review-Url: https://codereview.chromium.org/2347593002
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleApp.cpp | 4 |
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 { |