Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Unified Diff: cc/trees/layer_tree_host_pixeltest_masks.cc

Issue 1819683002: Use sk_sp-based picture recording APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: skspify GetPicture/GetFlattenedPicture Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/solid_color_content_layer_client.cc ('k') | cc/trees/layer_tree_host_pixeltest_tiles.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_pixeltest_masks.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_masks.cc b/cc/trees/layer_tree_host_pixeltest_masks.cc
index 890e94ad6b44a32bdb3b2ff11431406999ea03f9..3a6f1278e0aaa01ca007aef69c40c12ae06ad1a0 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;
« no previous file with comments | « cc/test/solid_color_content_layer_client.cc ('k') | cc/trees/layer_tree_host_pixeltest_tiles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698