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

Unified Diff: cc/resources/float_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/float_clip_display_item.h ('k') | cc/resources/largest_display_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/float_clip_display_item.cc
diff --git a/cc/resources/float_clip_display_item.cc b/cc/resources/float_clip_display_item.cc
index ba98fe5bdc0a44b09bf6d798a9cf8555976b9b25..47653a6eab36e96f947e7201149b8cace4b5aa41 100644
--- a/cc/resources/float_clip_display_item.cc
+++ b/cc/resources/float_clip_display_item.cc
@@ -11,13 +11,16 @@
namespace cc {
-FloatClipDisplayItem::FloatClipDisplayItem(gfx::RectF clip_rect)
- : clip_rect_(clip_rect) {
+FloatClipDisplayItem::FloatClipDisplayItem() {
}
FloatClipDisplayItem::~FloatClipDisplayItem() {
}
+void FloatClipDisplayItem::SetNew(const gfx::RectF& clip_rect) {
+ clip_rect_ = clip_rect;
+}
+
void FloatClipDisplayItem::Raster(SkCanvas* canvas,
SkDrawPictureCallback* callback) const {
canvas->save();
« no previous file with comments | « cc/resources/float_clip_display_item.h ('k') | cc/resources/largest_display_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698