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

Unified Diff: cc/paint/display_item_list.cc

Issue 2881213002: cc: Remove deprecated DisplayItemList::Raster overload. (Closed)
Patch Set: update Created 3 years, 7 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/paint/display_item_list.h ('k') | cc/paint/display_item_list_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/display_item_list.cc
diff --git a/cc/paint/display_item_list.cc b/cc/paint/display_item_list.cc
index 88e11106bacfca1789eaefb3de1ed9f925ace7ac..5f6fae6f334358a30d0fc05eb4c04eda7f1aab05 100644
--- a/cc/paint/display_item_list.cc
+++ b/cc/paint/display_item_list.cc
@@ -163,24 +163,6 @@ DisplayItemList::DisplayItemList()
DisplayItemList::~DisplayItemList() = default;
-void DisplayItemList::Raster(SkCanvas* canvas,
- SkPicture::AbortCallback* callback,
- const gfx::Rect& canvas_target_playback_rect,
- float contents_scale) const {
- canvas->save();
- if (!canvas_target_playback_rect.IsEmpty()) {
- // canvas_target_playback_rect is specified in device space. We can't
- // use clipRect because canvas CTM will be applied on it. Use clipRegion
- // instead because it ignores canvas CTM.
- SkRegion device_clip;
- device_clip.setRect(gfx::RectToSkIRect(canvas_target_playback_rect));
- canvas->clipRegion(device_clip);
- }
- canvas->scale(contents_scale, contents_scale);
- Raster(canvas, callback);
- canvas->restore();
-}
-
// Atttempts to merge a CompositingDisplayItem and DrawingDisplayItem
// into a single "draw with alpha". This function returns true if
// it was successful. If false, then the caller is responsible for
@@ -513,7 +495,7 @@ DisplayItemList::CreateTracedValue(bool include_items) const {
SkCanvas* canvas = recorder.beginRecording(bounds.width(), bounds.height());
canvas->translate(-bounds.x(), -bounds.y());
canvas->clipRect(gfx::RectToSkRect(bounds));
- Raster(canvas, nullptr, gfx::Rect(), 1.f);
+ Raster(canvas);
sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture();
std::string b64_picture;
« no previous file with comments | « cc/paint/display_item_list.h ('k') | cc/paint/display_item_list_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698