aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-04-30 13:09:24 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-04-30 13:09:25 -0700
commit1c2c441fede0ae9573afc098017011e3439624a9 (patch)
tree088df00ee48e5e6f6d0763c2962f25e61b25a80f /include
parent4f7ec55f7128e971318adc11f07fc485c4d50bc5 (diff)
add heuristic to pour small pictures into recordings, rather than ref'ing
Diffstat (limited to 'include')
-rw-r--r--include/core/SkCanvas.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index dcbff3f60b..9282267721 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -951,7 +951,9 @@ public:
@param picture The recorded drawing commands to playback into this
canvas.
*/
- void drawPicture(const SkPicture* picture);
+ void drawPicture(const SkPicture* picture) {
+ this->drawPicture(picture, NULL, NULL);
+ }
/**
* Draw the picture into this canvas.