| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #if SK_SUPPORT_GPU | 9 #if SK_SUPPORT_GPU |
| 10 #include "GrContext.h" | 10 #include "GrContext.h" |
| 11 #include "GrContextFactory.h" | 11 #include "GrContextFactory.h" |
| 12 #include "GrRenderTarget.h" | 12 #include "GrRenderTarget.h" |
| 13 #include "SkGpuDevice.h" | 13 #include "SkGpuDevice.h" |
| 14 #include "gl/GrGLDefines.h" | 14 #include "gl/GrGLDefines.h" |
| 15 #else | 15 #else |
| 16 class GrContext; | 16 class GrContext; |
| 17 #endif // SK_SUPPORT_GPU | 17 #endif // SK_SUPPORT_GPU |
| 18 | 18 |
| 19 #include "BenchTimer.h" | 19 #include "BenchTimer.h" |
| 20 #include "SkBenchLogger.h" | 20 #include "SkBenchLogger.h" |
| 21 #include "SkBenchmark.h" | 21 #include "SkBenchmark.h" |
| 22 #include "SkBitmapDevice.h" | 22 #include "SkBitmapDevice.h" |
| 23 #include "SkCanvas.h" | 23 #include "SkCanvas.h" |
| 24 #include "SkColorPriv.h" |
| 24 #include "SkCommandLineFlags.h" | 25 #include "SkCommandLineFlags.h" |
| 25 #include "SkDeferredCanvas.h" | 26 #include "SkDeferredCanvas.h" |
| 26 #include "SkGraphics.h" | 27 #include "SkGraphics.h" |
| 27 #include "SkImageEncoder.h" | 28 #include "SkImageEncoder.h" |
| 28 #include "SkOSFile.h" | 29 #include "SkOSFile.h" |
| 29 #include "SkPicture.h" | 30 #include "SkPicture.h" |
| 30 #include "SkString.h" | 31 #include "SkString.h" |
| 31 | 32 |
| 32 enum BenchMode { | 33 enum BenchMode { |
| 33 kNormal_BenchMode, | 34 kNormal_BenchMode, |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 gContextFactory.destroyContexts(); | 628 gContextFactory.destroyContexts(); |
| 628 #endif | 629 #endif |
| 629 return 0; | 630 return 0; |
| 630 } | 631 } |
| 631 | 632 |
| 632 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 633 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 633 int main(int argc, char * const argv[]) { | 634 int main(int argc, char * const argv[]) { |
| 634 return tool_main(argc, (char**) argv); | 635 return tool_main(argc, (char**) argv); |
| 635 } | 636 } |
| 636 #endif | 637 #endif |
| OLD | NEW |