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

Unified Diff: cc/blink/web_display_item_list_impl.cc

Issue 913413005: Constify SkPicture in DrawingDisplayItem (cc side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
Index: cc/blink/web_display_item_list_impl.cc
diff --git a/cc/blink/web_display_item_list_impl.cc b/cc/blink/web_display_item_list_impl.cc
index fdd05df63ab80407c5c19a84e7dfefe90e00fd2b..2afdd54bd679e840fcd61e4a2b20162c77369906 100644
--- a/cc/blink/web_display_item_list_impl.cc
+++ b/cc/blink/web_display_item_list_impl.cc
@@ -33,10 +33,10 @@ scoped_refptr<cc::DisplayItemList> WebDisplayItemListImpl::ToDisplayItemList() {
}
void WebDisplayItemListImpl::appendDrawingItem(
- SkPicture* picture,
+ const SkPicture* picture,
const blink::WebFloatPoint& location) {
display_item_list_->AppendItem(
- cc::DrawingDisplayItem::Create(skia::SharePtr(picture), location));
+ cc::DrawingDisplayItem::Create(skia::SharePtr(picture)));
}
void WebDisplayItemListImpl::appendClipItem(

Powered by Google App Engine
This is Rietveld 408576698