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

Unified Diff: cc/resources/clip_display_item.cc

Issue 1123983002: cc: Use a ListContainer for DisplayItemList to reduce allocations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: displaylistcontainer: fixdcheck Created 5 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/resources/clip_display_item.h ('k') | cc/resources/clip_path_display_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/clip_display_item.cc
diff --git a/cc/resources/clip_display_item.cc b/cc/resources/clip_display_item.cc
index b124ba1a1a77c08fd6d3a01175dd601b31dfdea6..c5c43620dde1237219473d2b9a072b0fe3db00ff 100644
--- a/cc/resources/clip_display_item.cc
+++ b/cc/resources/clip_display_item.cc
@@ -13,14 +13,18 @@
namespace cc {
-ClipDisplayItem::ClipDisplayItem(gfx::Rect clip_rect,
- const std::vector<SkRRect>& rounded_clip_rects)
- : clip_rect_(clip_rect), rounded_clip_rects_(rounded_clip_rects) {
+ClipDisplayItem::ClipDisplayItem() {
}
ClipDisplayItem::~ClipDisplayItem() {
}
+void ClipDisplayItem::SetNew(gfx::Rect clip_rect,
+ const std::vector<SkRRect>& rounded_clip_rects) {
+ clip_rect_ = clip_rect;
+ rounded_clip_rects_ = rounded_clip_rects;
+}
+
void ClipDisplayItem::Raster(SkCanvas* canvas,
SkDrawPictureCallback* callback) const {
canvas->save();
« no previous file with comments | « cc/resources/clip_display_item.h ('k') | cc/resources/clip_path_display_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698