| Index: cc/layer_impl.h
|
| diff --git a/cc/layer_impl.h b/cc/layer_impl.h
|
| index 05f3b44f374c6259dd281adb592abeaf90ce17d3..2fd4730c3dee61a9a3fef56d881cceb5e7584325 100644
|
| --- a/cc/layer_impl.h
|
| +++ b/cc/layer_impl.h
|
| @@ -5,8 +5,6 @@
|
| #ifndef CCLayerImpl_h
|
| #define CCLayerImpl_h
|
|
|
| -#include "FloatRect.h"
|
| -#include "IntRect.h"
|
| #include "Region.h"
|
| #include "base/logging.h"
|
| #include "base/memory/scoped_ptr.h"
|
| @@ -18,6 +16,8 @@
|
| #include "cc/scoped_ptr_vector.h"
|
| #include "cc/shared_quad_state.h"
|
| #include "third_party/skia/include/core/SkColor.h"
|
| +#include "ui/gfx/rect.h"
|
| +#include "ui/gfx/rect_f.h"
|
| #include <public/WebFilterOperations.h>
|
| #include <public/WebTransformationMatrix.h>
|
| #include <string>
|
| @@ -95,8 +95,8 @@ public:
|
| // Returns true if any of the layer's descendants has content to draw.
|
| virtual bool descendantDrawsContent();
|
|
|
| - void setAnchorPoint(const FloatPoint&);
|
| - const FloatPoint& anchorPoint() const { return m_anchorPoint; }
|
| + void setAnchorPoint(const gfx::PointF&);
|
| + const gfx::PointF& anchorPoint() const { return m_anchorPoint; }
|
|
|
| void setAnchorPointZ(float);
|
| float anchorPointZ() const { return m_anchorPointZ; }
|
| @@ -122,8 +122,8 @@ public:
|
| void setOpacity(float);
|
| bool opacityIsAnimating() const;
|
|
|
| - void setPosition(const FloatPoint&);
|
| - const FloatPoint& position() const { return m_position; }
|
| + void setPosition(const gfx::PointF&);
|
| + const gfx::PointF& position() const { return m_position; }
|
|
|
| void setIsContainerForFixedPositionLayers(bool isContainerForFixedPositionLayers) { m_isContainerForFixedPositionLayers = isContainerForFixedPositionLayers; }
|
| bool isContainerForFixedPositionLayers() const { return m_isContainerForFixedPositionLayers; }
|
| @@ -167,11 +167,11 @@ public:
|
| LayerImpl* renderTarget() const { DCHECK(!m_renderTarget || m_renderTarget->renderSurface()); return m_renderTarget; }
|
| void setRenderTarget(LayerImpl* target) { m_renderTarget = target; }
|
|
|
| - void setBounds(const IntSize&);
|
| - const IntSize& bounds() const { return m_bounds; }
|
| + void setBounds(const gfx::Size&);
|
| + const gfx::Size& bounds() const { return m_bounds; }
|
|
|
| - const IntSize& contentBounds() const { return m_contentBounds; }
|
| - void setContentBounds(const IntSize&);
|
| + const gfx::Size& contentBounds() const { return m_contentBounds; }
|
| + void setContentBounds(const gfx::Size&);
|
|
|
| const IntPoint& scrollPosition() const { return m_scrollPosition; }
|
| void setScrollPosition(const IntPoint&);
|
| @@ -208,8 +208,8 @@ public:
|
|
|
| InputHandlerClient::ScrollStatus tryScroll(const IntPoint& viewportPoint, InputHandlerClient::ScrollInputType) const;
|
|
|
| - const IntRect& visibleContentRect() const { return m_visibleContentRect; }
|
| - void setVisibleContentRect(const IntRect& visibleContentRect) { m_visibleContentRect = visibleContentRect; }
|
| + const gfx::Rect& visibleContentRect() const { return m_visibleContentRect; }
|
| + void setVisibleContentRect(const gfx::Rect& visibleContentRect) { m_visibleContentRect = visibleContentRect; }
|
|
|
| bool doubleSided() const { return m_doubleSided; }
|
| void setDoubleSided(bool);
|
| @@ -227,10 +227,10 @@ public:
|
| bool screenSpaceTransformIsAnimating() const { return m_screenSpaceTransformIsAnimating; }
|
| void setScreenSpaceTransformIsAnimating(bool animating) { m_screenSpaceTransformIsAnimating = animating; }
|
|
|
| - const IntRect& drawableContentRect() const { return m_drawableContentRect; }
|
| - void setDrawableContentRect(const IntRect& rect) { m_drawableContentRect = rect; }
|
| - const FloatRect& updateRect() const { return m_updateRect; }
|
| - void setUpdateRect(const FloatRect& updateRect) { m_updateRect = updateRect; }
|
| + const gfx::Rect& drawableContentRect() const { return m_drawableContentRect; }
|
| + void setDrawableContentRect(const gfx::Rect& rect) { m_drawableContentRect = rect; }
|
| + const gfx::RectF& updateRect() const { return m_updateRect; }
|
| + void setUpdateRect(const gfx::RectF& updateRect) { m_updateRect = updateRect; }
|
|
|
| std::string layerTreeAsText() const;
|
|
|
| @@ -265,7 +265,7 @@ protected:
|
|
|
| void appendDebugBorderQuad(QuadSink&, const SharedQuadState*, AppendQuadsData&) const;
|
|
|
| - IntRect layerRectToContentRect(const WebKit::WebRect& layerRect);
|
| + gfx::Rect layerRectToContentRect(const gfx::Rect& layerRect);
|
|
|
| virtual void dumpLayerProperties(std::string*, int indent) const;
|
| static std::string indentString(int indent);
|
| @@ -296,10 +296,10 @@ private:
|
| LayerTreeHostImpl* m_layerTreeHostImpl;
|
|
|
| // Properties synchronized from the associated Layer.
|
| - FloatPoint m_anchorPoint;
|
| + gfx::PointF m_anchorPoint;
|
| float m_anchorPointZ;
|
| - IntSize m_bounds;
|
| - IntSize m_contentBounds;
|
| + gfx::Size m_bounds;
|
| + gfx::Size m_contentBounds;
|
| IntPoint m_scrollPosition;
|
| bool m_scrollable;
|
| bool m_shouldScrollOnMainThread;
|
| @@ -320,11 +320,11 @@ private:
|
| bool m_layerSurfacePropertyChanged;
|
|
|
| // Uses layer's content space.
|
| - IntRect m_visibleContentRect;
|
| + gfx::Rect m_visibleContentRect;
|
| bool m_masksToBounds;
|
| bool m_contentsOpaque;
|
| float m_opacity;
|
| - FloatPoint m_position;
|
| + gfx::PointF m_position;
|
| bool m_preserves3D;
|
| bool m_useParentBackfaceVisibility;
|
| bool m_drawCheckerboardForMissingTiles;
|
| @@ -382,12 +382,12 @@ private:
|
|
|
| // Hierarchical bounding rect containing the layer and its descendants.
|
| // Uses target surface's space.
|
| - IntRect m_drawableContentRect;
|
| + gfx::Rect m_drawableContentRect;
|
|
|
| // Rect indicating what was repainted/updated during update.
|
| // Note that plugin layers bypass this and leave it empty.
|
| // Uses layer's content space.
|
| - FloatRect m_updateRect;
|
| + gfx::RectF m_updateRect;
|
|
|
| // Manages animations for this layer.
|
| scoped_ptr<LayerAnimationController> m_layerAnimationController;
|
|
|