diff options
author | 2012-09-26 13:44:13 +0000 | |
---|---|---|
committer | 2012-09-26 13:44:13 +0000 | |
commit | 6ae24e0f5fa3306054679d0ec8f9d1f5d35c2617 (patch) | |
tree | a3d02a8b475a713bfa3a5ea0347a43353250ce99 /debugger | |
parent | 21a95f16c9b73f3ecd23b9abfb6fc04e069de010 (diff) |
remove uses of setBitmapDevice (DEPRECATED)
git-svn-id: http://skia.googlecode.com/svn/trunk@5689 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'debugger')
-rw-r--r-- | debugger/SkDebugCanvas.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/debugger/SkDebugCanvas.cpp b/debugger/SkDebugCanvas.cpp index db9154e15b..b970bb940b 100644 --- a/debugger/SkDebugCanvas.cpp +++ b/debugger/SkDebugCanvas.cpp @@ -11,12 +11,19 @@ #include "SkDebugCanvas.h" #include "SkDrawCommand.h" -SkDebugCanvas::SkDebugCanvas(int width, int height) { +static SkBitmap make_noconfig_bm(int width, int height) { + SkBitmap bm; + bm.setConfig(SkBitmap::kNo_Config, width, height); + return bm; +} + +SkDebugCanvas::SkDebugCanvas(int width, int height) + : INHERITED(make_noconfig_bm(width, height)) { // TODO(chudy): Free up memory from all draw commands in destructor. fWidth = width; fHeight = height; + // do we need fBm anywhere? fBm.setConfig(SkBitmap::kNo_Config, fWidth, fHeight); - this->setBitmapDevice(fBm); fFilter = false; fIndex = 0; fUserOffset.set(0,0); |