diff options
author | Derek Sollenberger <djsollen@google.com> | 2012-08-16 15:08:47 -0400 |
---|---|---|
committer | Derek Sollenberger <djsollen@google.com> | 2012-08-17 16:49:02 -0400 |
commit | 99180756367573f1d741a5104ed401c5a7308ae9 (patch) | |
tree | cdfeb40215669eae4f723ffd88230b14c5652ccb | |
parent | fbb38cd17727043aa04957aa5edd7c9fec4d076a (diff) | |
download | external_skia-99180756367573f1d741a5104ed401c5a7308ae9.zip external_skia-99180756367573f1d741a5104ed401c5a7308ae9.tar.gz external_skia-99180756367573f1d741a5104ed401c5a7308ae9.tar.bz2 |
Ensure SkCanvas will have a device by default.
bug: 6987261
Change-Id: I8cb5b6da2347a1fa88a13aa3548312a7773831e5
-rw-r--r-- | src/core/SkCanvas.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index 7861636..0e26728 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -425,7 +425,8 @@ SkCanvas::SkCanvas() : fMCStack(sizeof(MCRec), fMCRecStorage, sizeof(fMCRecStorage)) { inc_canvas(); - this->init(NULL); + SkBitmap bitmap; + this->init(SkNEW_ARGS(SkDevice, (bitmap)))->unref(); } SkCanvas::SkCanvas(SkDevice* device) |