| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 "Test.h" | 8 #include "../src/image/SkImagePriv.h" |
| 9 #include "../src/image/SkSurface_Base.h" |
| 9 #include "SkBitmap.h" | 10 #include "SkBitmap.h" |
| 10 #include "SkBitmapDevice.h" | 11 #include "SkBitmapDevice.h" |
| 11 #include "SkBitmapProcShader.h" | 12 #include "SkBitmapProcShader.h" |
| 12 #include "SkDeferredCanvas.h" | 13 #include "SkDeferredCanvas.h" |
| 13 #include "SkGradientShader.h" | 14 #include "SkGradientShader.h" |
| 14 #include "SkShader.h" | 15 #include "SkShader.h" |
| 15 #include "../src/image/SkSurface_Base.h" | 16 #include "Test.h" |
| 16 #include "../src/image/SkImagePriv.h" | |
| 17 #if SK_SUPPORT_GPU | 17 #if SK_SUPPORT_GPU |
| 18 #include "GrContextFactory.h" | 18 #include "GrContextFactory.h" |
| 19 #else | 19 #else |
| 20 class GrContextFactory; | 20 class GrContextFactory; |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 static const int gWidth = 2; | 23 static const int gWidth = 2; |
| 24 static const int gHeight = 2; | 24 static const int gHeight = 2; |
| 25 | 25 |
| 26 static void create(SkBitmap* bm, SkBitmap::Config config, SkColor color) { | 26 static void create(SkBitmap* bm, SkBitmap::Config config, SkColor color) { |
| (...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 TestDeferredCanvasBitmapSizeThreshold(reporter); | 843 TestDeferredCanvasBitmapSizeThreshold(reporter); |
| 844 TestDeferredCanvasCreateCompatibleDevice(reporter); | 844 TestDeferredCanvasCreateCompatibleDevice(reporter); |
| 845 TestDeferredCanvasWritePixelsToSurface(reporter); | 845 TestDeferredCanvasWritePixelsToSurface(reporter); |
| 846 TestDeferredCanvasSurface(reporter, NULL); | 846 TestDeferredCanvasSurface(reporter, NULL); |
| 847 TestDeferredCanvasSetSurface(reporter, NULL); | 847 TestDeferredCanvasSetSurface(reporter, NULL); |
| 848 if (NULL != factory) { | 848 if (NULL != factory) { |
| 849 TestDeferredCanvasSurface(reporter, factory); | 849 TestDeferredCanvasSurface(reporter, factory); |
| 850 TestDeferredCanvasSetSurface(reporter, factory); | 850 TestDeferredCanvasSetSurface(reporter, factory); |
| 851 } | 851 } |
| 852 } | 852 } |
| OLD | NEW |