diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-29 11:54:56 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-29 11:54:56 +0000 |
commit | 1f2f338e23789f3eef168dcbd8171a28820ba6c1 (patch) | |
tree | cfa6c68aca1dbad85f6ae0d3e1e616d9dac1369b /bench/DisplacementBench.cpp | |
parent | 3e8466a1520343e2e7d280d9d1f39b2bd048fbb9 (diff) |
Split SkDevice into SkBaseDevice and SkBitmapDevice
https://codereview.chromium.org/22978012/
git-svn-id: http://skia.googlecode.com/svn/trunk@10995 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/DisplacementBench.cpp')
-rw-r--r-- | bench/DisplacementBench.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bench/DisplacementBench.cpp b/bench/DisplacementBench.cpp index 5adec1f706..e498a1bc63 100644 --- a/bench/DisplacementBench.cpp +++ b/bench/DisplacementBench.cpp @@ -5,9 +5,9 @@ * found in the LICENSE file. */ #include "SkBenchmark.h" +#include "SkBitmapDevice.h" #include "SkBitmapSource.h" #include "SkCanvas.h" -#include "SkDevice.h" #include "SkDisplacementMapEffect.h" #define FILTER_WIDTH_SMALL 32 @@ -35,7 +35,7 @@ protected: const int h = isSmall() ? FILTER_HEIGHT_LARGE : FILTER_HEIGHT_LARGE; fBitmap.setConfig(SkBitmap::kARGB_8888_Config, w, h); fBitmap.allocPixels(); - SkDevice device(fBitmap); + SkBitmapDevice device(fBitmap); SkCanvas canvas(&device); canvas.clear(0x00000000); SkPaint paint; @@ -51,7 +51,7 @@ protected: const int h = isSmall() ? FILTER_HEIGHT_LARGE : FILTER_HEIGHT_LARGE; fCheckerboard.setConfig(SkBitmap::kARGB_8888_Config, w, h); fCheckerboard.allocPixels(); - SkDevice device(fCheckerboard); + SkBitmapDevice device(fCheckerboard); SkCanvas canvas(&device); canvas.clear(0x00000000); SkPaint darkPaint; |