compositor-worker: Introduce WebCompositorMutableState
This change introduces a wrapper around compositer-owned state that may
be mutated by a compositor worker.
This depends on crrev.com/1405993008
BUG=430155
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1447893002
Cr-Commit-Position: refs/heads/master@{#368273}
diff --git a/ui/gfx/transform.h b/ui/gfx/transform.h
index 26f7b9d2..75c4797 100644
--- a/ui/gfx/transform.h
+++ b/ui/gfx/transform.h
@@ -40,6 +40,7 @@
// Initialize with the concatenation of lhs * rhs.
Transform(const Transform& lhs, const Transform& rhs)
: matrix_(lhs.matrix_, rhs.matrix_) {}
+ explicit Transform(const SkMatrix44& matrix) : matrix_(matrix) {}
// Constructs a transform from explicit 16 matrix elements. Elements
// should be given in row-major order.
Transform(SkMScalar col1row1,