diff options
| author | fmalita <fmalita@chromium.org> | 2016-03-22 06:32:10 -0700 |
|---|---|---|
| committer | Commit bot <commit-bot@chromium.org> | 2016-03-22 13:33:15 +0000 |
| commit | 2d743288889c7804e6431bf389cdc6084aaa49ef (patch) | |
| tree | 95409a0d222e17f9e678b97040c0567ede58c4bc /cc/trees/layer_tree_host_pixeltest_masks.cc | |
| parent | c2db76301d3eb61575d807d2897da86d637cbd34 (diff) | |
| download | chromium_src-2d743288889c7804e6431bf389cdc6084aaa49ef.zip chromium_src-2d743288889c7804e6431bf389cdc6084aaa49ef.tar.gz chromium_src-2d743288889c7804e6431bf389cdc6084aaa49ef.tar.bz2 | |
Use sk_sp-based picture recording APIs
1) use SkPictureRecorder::finishRecordingAsPicture() over
endRecordingAsPicture()
2) convert to sk_sp<SkPicture> fields/params where feasible
BUG=skia:5077
R=reed@google.com,danakj@chromium.org,enne@chromium.org
TBR=pdr@chromium.org,alekseys@chromium.org
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1819683002
Cr-Commit-Position: refs/heads/master@{#382563}
Diffstat (limited to 'cc/trees/layer_tree_host_pixeltest_masks.cc')
| -rw-r--r-- | cc/trees/layer_tree_host_pixeltest_masks.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cc/trees/layer_tree_host_pixeltest_masks.cc b/cc/trees/layer_tree_host_pixeltest_masks.cc index 890e94a..3a6f127 100644 --- a/cc/trees/layer_tree_host_pixeltest_masks.cc +++ b/cc/trees/layer_tree_host_pixeltest_masks.cc @@ -61,7 +61,7 @@ class MaskContentLayerClient : public ContentLayerClient { scoped_refptr<DisplayItemList> display_list = DisplayItemList::Create(PaintableRegion(), DisplayItemListSettings()); display_list->CreateAndAppendItem<DrawingDisplayItem>( - PaintableRegion(), skia::AdoptRef(recorder.endRecordingAsPicture())); + PaintableRegion(), recorder.finishRecordingAsPicture()); display_list->Finalize(); return display_list; @@ -329,7 +329,7 @@ class CheckerContentLayerClient : public ContentLayerClient { scoped_refptr<DisplayItemList> display_list = DisplayItemList::Create(PaintableRegion(), DisplayItemListSettings()); display_list->CreateAndAppendItem<DrawingDisplayItem>( - PaintableRegion(), skia::AdoptRef(recorder.endRecordingAsPicture())); + PaintableRegion(), recorder.finishRecordingAsPicture()); display_list->Finalize(); return display_list; @@ -367,7 +367,7 @@ class CircleContentLayerClient : public ContentLayerClient { scoped_refptr<DisplayItemList> display_list = DisplayItemList::Create(PaintableRegion(), DisplayItemListSettings()); display_list->CreateAndAppendItem<DrawingDisplayItem>( - PaintableRegion(), skia::AdoptRef(recorder.endRecordingAsPicture())); + PaintableRegion(), recorder.finishRecordingAsPicture()); display_list->Finalize(); return display_list; |
