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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « gm/deferredtextureimage.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SampleApp.h" 8 #include "SampleApp.h"
9 9
10 #include "OverView.h" 10 #include "OverView.h"
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 365
366 GrContext* getGrContext() override { 366 GrContext* getGrContext() override {
367 #if SK_SUPPORT_GPU 367 #if SK_SUPPORT_GPU
368 return fCurContext; 368 return fCurContext;
369 #else 369 #else
370 return nullptr; 370 return nullptr;
371 #endif 371 #endif
372 } 372 }
373 373
374 int numColorSamples() const override { 374 int numColorSamples() const override {
375 #if SK_SUPPORT_GPU
375 return fMSAASampleCount; 376 return fMSAASampleCount;
377 #else
378 return 0;
379 #endif
376 } 380 }
377 381
378 int getColorBits() override { 382 int getColorBits() override {
379 #if SK_SUPPORT_GPU 383 #if SK_SUPPORT_GPU
380 return fActualColorBits; 384 return fActualColorBits;
381 #else 385 #else
382 return 24; 386 return 24;
383 #endif 387 #endif
384 } 388 }
385 389
(...skipping 1918 matching lines...) Expand 10 before | Expand all | Expand 10 after
2304 #ifdef SK_BUILD_FOR_MAC 2308 #ifdef SK_BUILD_FOR_MAC
2305 setenv("ANDROID_ROOT", "/android/device/data", 0); 2309 setenv("ANDROID_ROOT", "/android/device/data", 0);
2306 #endif 2310 #endif
2307 SkGraphics::Init(); 2311 SkGraphics::Init();
2308 SkEvent::Init(); 2312 SkEvent::Init();
2309 } 2313 }
2310 2314
2311 void application_term() { 2315 void application_term() {
2312 SkEvent::Term(); 2316 SkEvent::Term();
2313 } 2317 }
OLDNEW
« 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