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

Side by Side Diff: cc/layer_sorter.h

Issue 11369018: cc: Switch from WebCore::FloatPoint3D to gfx::Point3F and gfx::Vector3dF in the compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missing base files 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CCLayerSorter_h 5 #ifndef CCLayerSorter_h
6 #define CCLayerSorter_h 6 #define CCLayerSorter_h
7 7
8 #include "FloatPoint3D.h"
9 #include "FloatQuad.h" 8 #include "FloatQuad.h"
10 #include "base/basictypes.h" 9 #include "base/basictypes.h"
11 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
12 #include "cc/layer_impl.h" 11 #include "cc/layer_impl.h"
12 #include "ui/gfx/point3_f.h"
13 #include "ui/gfx/rect_f.h" 13 #include "ui/gfx/rect_f.h"
14 #include "ui/gfx/vector3d_f.h"
14 15
15 #if defined(COMPILER_GCC) 16 #if defined(COMPILER_GCC)
16 namespace cc 17 namespace cc
17 { 18 {
18 struct GraphEdge; 19 struct GraphEdge;
19 }; 20 };
20 21
21 namespace BASE_HASH_NAMESPACE { 22 namespace BASE_HASH_NAMESPACE {
22 template<> 23 template<>
23 struct hash<cc::GraphEdge*> { 24 struct hash<cc::GraphEdge*> {
(...skipping 13 matching lines...) Expand all
37 struct GraphEdge; 38 struct GraphEdge;
38 39
39 // Holds various useful properties derived from a layer's 3D outline. 40 // Holds various useful properties derived from a layer's 3D outline.
40 struct LayerShape { 41 struct LayerShape {
41 LayerShape(); 42 LayerShape();
42 LayerShape(float width, float height, const WebKit::WebTransformationMatrix& drawTransform); 43 LayerShape(float width, float height, const WebKit::WebTransformationMatrix& drawTransform);
43 ~LayerShape(); 44 ~LayerShape();
44 45
45 float layerZFromProjectedPoint(const gfx::PointF&) const; 46 float layerZFromProjectedPoint(const gfx::PointF&) const;
46 47
47 FloatPoint3D layerNormal; 48 gfx::Vector3dF layerNormal;
48 FloatPoint3D transformOrigin; 49 gfx::Point3F transformOrigin;
49 FloatQuad projectedQuad; 50 FloatQuad projectedQuad;
50 gfx::RectF projectedBounds; 51 gfx::RectF projectedBounds;
51 }; 52 };
52 53
53 struct GraphNode { 54 struct GraphNode {
54 explicit GraphNode(LayerImpl* layerImpl); 55 explicit GraphNode(LayerImpl* layerImpl);
55 ~GraphNode(); 56 ~GraphNode();
56 57
57 LayerImpl* layer; 58 LayerImpl* layer;
58 LayerShape shape; 59 LayerShape shape;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 106
106 void createGraphNodes(LayerList::iterator first, LayerList::iterator last); 107 void createGraphNodes(LayerList::iterator first, LayerList::iterator last);
107 void createGraphEdges(); 108 void createGraphEdges();
108 void removeEdgeFromList(GraphEdge*, std::vector<GraphEdge*>&); 109 void removeEdgeFromList(GraphEdge*, std::vector<GraphEdge*>&);
109 110
110 DISALLOW_COPY_AND_ASSIGN(LayerSorter); 111 DISALLOW_COPY_AND_ASSIGN(LayerSorter);
111 }; 112 };
112 113
113 } 114 }
114 #endif 115 #endif
OLDNEW
« cc/cc.gyp ('K') | « cc/layer_quad.h ('k') | cc/layer_sorter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698