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

Unified Diff: cc/paint/transform_display_item.cc

Issue 2830243002: cc: Don't perform image analysis if the DisplayItemList has no images. (Closed)
Patch Set: rebase 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/paint_op_buffer_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/transform_display_item.cc
diff --git a/cc/paint/transform_display_item.cc b/cc/paint/transform_display_item.cc
index 6cc3e7f2d1edc2e56d0da467eb877d152c855b30..54c034e8502dbd4be386410dd1075ed9811fbc26 100644
--- a/cc/paint/transform_display_item.cc
+++ b/cc/paint/transform_display_item.cc
@@ -8,7 +8,11 @@ namespace cc {
TransformDisplayItem::TransformDisplayItem(const gfx::Transform& transform)
- : DisplayItem(TRANSFORM), transform(transform) {}
+ : DisplayItem(TRANSFORM), transform(transform) {
+ // The underlying SkMatrix in gfx::Transform is not thread-safe, unless
+ // getType() has been called.
+ this->transform.matrix().getType();
+}
TransformDisplayItem::~TransformDisplayItem() = default;
« no previous file with comments | « cc/paint/paint_op_buffer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698