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

Unified Diff: webkit/renderer/compositor_bindings/web_layer_impl.h

Issue 295193002: Get rid of graphics layer anchor points, and replace with transform origin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit. Created 6 years, 6 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 | « ui/compositor/layer_unittest.cc ('k') | webkit/renderer/compositor_bindings/web_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/renderer/compositor_bindings/web_layer_impl.h
diff --git a/webkit/renderer/compositor_bindings/web_layer_impl.h b/webkit/renderer/compositor_bindings/web_layer_impl.h
index 4e46e30a12c27895cd3b5da5c386227f121d901e..f567dd62b67738d9919353269f103ec42980df0a 100644
--- a/webkit/renderer/compositor_bindings/web_layer_impl.h
+++ b/webkit/renderer/compositor_bindings/web_layer_impl.h
@@ -64,10 +64,6 @@ class WebLayerImpl : public blink::WebLayer, public cc::LayerClient {
blink::WebLayer* new_layer);
virtual void removeFromParent();
virtual void removeAllChildren();
- virtual void setAnchorPoint(const blink::WebFloatPoint&);
- virtual blink::WebFloatPoint anchorPoint() const;
- virtual void setAnchorPointZ(float anchor_point_z);
- virtual float anchorPointZ() const;
virtual void setBounds(const blink::WebSize& bounds);
virtual blink::WebSize bounds() const;
virtual void setMasksToBounds(bool masks_to_bounds);
@@ -85,6 +81,15 @@ class WebLayerImpl : public blink::WebLayer, public cc::LayerClient {
virtual void setPosition(const blink::WebFloatPoint& position);
virtual blink::WebFloatPoint position() const;
virtual void setTransform(const SkMatrix44& transform);
+ virtual void setTransformOrigin(const blink::WebFloatPoint3D& point);
+ virtual blink::WebFloatPoint3D transformOrigin() const;
+
+ // FIXME: get rid of these once Blink is no longer using them.
+ virtual void setAnchorPoint(const blink::WebFloatPoint&);
+ virtual blink::WebFloatPoint anchorPoint() const;
+ virtual void setAnchorPointZ(float);
+ virtual float anchorPointZ() const ;
+
virtual SkMatrix44 transform() const;
virtual void setDrawsContent(bool draws_content);
virtual bool drawsContent() const;
« no previous file with comments | « ui/compositor/layer_unittest.cc ('k') | webkit/renderer/compositor_bindings/web_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698