diff options
author | 2011-06-16 19:10:39 +0000 | |
---|---|---|
committer | 2011-06-16 19:10:39 +0000 | |
commit | af951c9bc4cbb6e60b430194fe5127ebe99c53fb (patch) | |
tree | b1eba8d71a9db8d02de1cf5ca0c13f7a5f6f1e4e /src/views | |
parent | 3cbd37535083a83d517e9d032ba732c2ff8afc6b (diff) |
make SkDevice constructors explicit between offscreen and on/direct
http://codereview.appspot.com/4632044/
git-svn-id: http://skia.googlecode.com/svn/trunk@1620 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/views')
-rw-r--r-- | src/views/SkWindow.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/views/SkWindow.cpp b/src/views/SkWindow.cpp index db4faee11f..dc833ec0b1 100644 --- a/src/views/SkWindow.cpp +++ b/src/views/SkWindow.cpp @@ -172,11 +172,8 @@ bool SkWindow::update(SkIRect* updateArea, SkCanvas* canvas) if (NULL == canvas) { canvas = &rasterCanvas; - device = new SkDevice(canvas, bm, false); - canvas->setDevice(device)->unref(); - } else { - canvas->setBitmapDevice(bm); } + canvas->setBitmapDevice(bm); canvas->clipRegion(fDirtyRgn); if (updateArea) |