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

Unified Diff: cc/resources/transform_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/transform_display_item.h ('k') | cc/test/fake_content_layer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/transform_display_item.cc
diff --git a/cc/resources/transform_display_item.cc b/cc/resources/transform_display_item.cc
index a25f3478997f7af4cd03a108e6e01501c9721556..4293c7f1f70a56256a6965b8d1026a083d89f5ac 100644
--- a/cc/resources/transform_display_item.cc
+++ b/cc/resources/transform_display_item.cc
@@ -10,13 +10,17 @@
namespace cc {
-TransformDisplayItem::TransformDisplayItem(const gfx::Transform& transform)
- : transform_(transform) {
+TransformDisplayItem::TransformDisplayItem()
+ : transform_(gfx::Transform::kSkipInitialization) {
}
TransformDisplayItem::~TransformDisplayItem() {
}
+void TransformDisplayItem::SetNew(const gfx::Transform& transform) {
+ transform_ = transform;
+}
+
void TransformDisplayItem::Raster(SkCanvas* canvas,
SkDrawPictureCallback* callback) const {
canvas->save();
« no previous file with comments | « cc/resources/transform_display_item.h ('k') | cc/test/fake_content_layer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698