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

Unified Diff: cc/layer_sorter.h

Issue 11264056: cc: Use gfx:: Geometry types for positions, bounds, and related things. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ScaleAsVector Created 8 years, 1 month 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 | « cc/layer_quad.cc ('k') | cc/layer_sorter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_sorter.h
diff --git a/cc/layer_sorter.h b/cc/layer_sorter.h
index 6d5f70464a3014cf53cb9d337e14828e934de3a7..434fa233cd60bd209ae9670ba49e2e6148951bb1 100644
--- a/cc/layer_sorter.h
+++ b/cc/layer_sorter.h
@@ -7,10 +7,10 @@
#include "FloatPoint3D.h"
#include "FloatQuad.h"
-#include "FloatRect.h"
#include "base/basictypes.h"
#include "base/hash_tables.h"
#include "cc/layer_impl.h"
+#include "ui/gfx/rect_f.h"
#if defined(COMPILER_GCC)
namespace cc
@@ -40,13 +40,14 @@ struct GraphEdge;
struct LayerShape {
LayerShape();
LayerShape(float width, float height, const WebKit::WebTransformationMatrix& drawTransform);
+ ~LayerShape();
- float layerZFromProjectedPoint(const FloatPoint&) const;
+ float layerZFromProjectedPoint(const gfx::PointF&) const;
FloatPoint3D layerNormal;
FloatPoint3D transformOrigin;
FloatQuad projectedQuad;
- FloatRect projectedBounds;
+ gfx::RectF projectedBounds;
};
struct GraphNode {
« no previous file with comments | « cc/layer_quad.cc ('k') | cc/layer_sorter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698