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; |