Canvas size initializes correctly when drawing from a skia picture
Review URL: https://codereview.appspot.com/6450065
git-svn-id: http://skia.googlecode.com/svn/trunk@4837 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/debugger/SkDebugCanvas.cpp b/debugger/SkDebugCanvas.cpp
index 9510e65..12d7127 100644
--- a/debugger/SkDebugCanvas.cpp
+++ b/debugger/SkDebugCanvas.cpp
@@ -11,10 +11,10 @@
#include "SkDebugCanvas.h"
#include "SkDrawCommand.h"
-SkDebugCanvas::SkDebugCanvas() {
+SkDebugCanvas::SkDebugCanvas(int width, int height) {
// TODO(chudy): Free up memory from all draw commands in destructor.
- fWidth = 100;
- fHeight = 100;
+ fWidth = width;
+ fHeight = height;
fBm.setConfig(SkBitmap::kNo_Config, fWidth, fHeight);
this->setBitmapDevice(fBm);
fFilter = false;