aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/distantclip.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-17 23:35:06 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-17 23:35:06 +0000
commit5fb2ce38b3dcb8e60e9e112df23c9d42456d7069 (patch)
tree521360e38040e661934a07f7fe1c2c49f520940b /gm/distantclip.cpp
parentd24a130c1217873d0744d35722005516a0acb774 (diff)
Staged removal of SkPicture-derived classes
This CL removes the SkPicture-derived classes (with a flag to keeps clients working). In the process it also lightens the recording factory function so it is no longer ref counted). The only interesting bits are in SkPicture* and Sk*Picture.* R=reed@google.com Author: robertphillips@google.com Review URL: https://codereview.chromium.org/238273012 git-svn-id: http://skia.googlecode.com/svn/trunk@14251 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/distantclip.cpp')
-rw-r--r--gm/distantclip.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/distantclip.cpp b/gm/distantclip.cpp
index 0f78dbd3ee..1fcded05bf 100644
--- a/gm/distantclip.cpp
+++ b/gm/distantclip.cpp
@@ -33,7 +33,7 @@ protected:
// We record a picture of huge vertical extents in which we clear the canvas to red, create
// a 'extents' by 'extents' round rect clip at a vertical offset of 'offset', then draw
// green into that.
- SkCanvas* rec = recorder.beginRecording(100, offset + extents);
+ SkCanvas* rec = recorder.beginRecording(100, offset + extents, NULL, 0);
rec->drawColor(0xffff0000);
rec->save();
SkRect r = {
@@ -50,7 +50,7 @@ protected:
SkAutoTUnref<SkPicture> pict(recorder.endRecording());
// Next we play that picture into another picture of the same size.
- pict->draw(recorder.beginRecording(100, offset + extents));
+ pict->draw(recorder.beginRecording(100, offset + extents, NULL, 0));
SkAutoTUnref<SkPicture> pict2(recorder.endRecording());
// Finally we play the part of that second picture that should be green into the canvas.