diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-01 18:15:58 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-01 18:15:58 +0000 |
commit | aad0a007e1cd343892d7b13ce5ea8d90e8ef7f53 (patch) | |
tree | 24c9af166977bbf8f25aa5b129defb35f3f8ec05 /cc/io_surface_layer_impl.h | |
parent | 33432d8c37e3b929c60097c1eb7a53b13f364fb5 (diff) | |
download | chromium_src-aad0a007e1cd343892d7b13ce5ea8d90e8ef7f53.zip chromium_src-aad0a007e1cd343892d7b13ce5ea8d90e8ef7f53.tar.gz chromium_src-aad0a007e1cd343892d7b13ce5ea8d90e8ef7f53.tar.bz2 |
cc: Use gfx:: Geometry types for positions, bounds, and related things.
This covers layers, layer tree hosts, and related classes. *phew*
I intentionally avoided anything to do with scrolling or page scale. Those
should be changed to be Vectors and need a bit more thought. This change
should be pretty mindless.
It converts to gfx Rect, Size, Vector, and Point classes. No change is
made for FloatPoint3D or FloatQuad yet.
I've added cc/geometry.h as a place for free functions that don't exist
on gfx types yet, and that we should port over in the future.
No change in behaviour; covered by existing tests.
BUG=147395
R=enne
Review URL: https://codereview.chromium.org/11264056
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165434 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/io_surface_layer_impl.h')
-rw-r--r-- | cc/io_surface_layer_impl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cc/io_surface_layer_impl.h b/cc/io_surface_layer_impl.h index aef12de..91e889e 100644 --- a/cc/io_surface_layer_impl.h +++ b/cc/io_surface_layer_impl.h @@ -5,8 +5,8 @@ #ifndef CCIOSurfaceLayerImpl_h #define CCIOSurfaceLayerImpl_h -#include "IntSize.h" #include "cc/layer_impl.h" +#include "ui/gfx/size.h" namespace cc { @@ -18,7 +18,7 @@ public: } virtual ~IOSurfaceLayerImpl(); - void setIOSurfaceProperties(unsigned ioSurfaceId, const IntSize&); + void setIOSurfaceProperties(unsigned ioSurfaceId, const gfx::Size&); virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; @@ -33,7 +33,7 @@ private: virtual const char* layerTypeAsString() const OVERRIDE; unsigned m_ioSurfaceId; - IntSize m_ioSurfaceSize; + gfx::Size m_ioSurfaceSize; bool m_ioSurfaceChanged; unsigned m_ioSurfaceTextureId; }; |