| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |