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

Side by Side Diff: cc/layers/render_surface_impl.h

Issue 156603005: cc: Clean up iterator template to only take 1 parameter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iteratorcleanup: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/layers/render_surface.h ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CC_LAYERS_RENDER_SURFACE_IMPL_H_ 5 #ifndef CC_LAYERS_RENDER_SURFACE_IMPL_H_
6 #define CC_LAYERS_RENDER_SURFACE_IMPL_H_ 6 #define CC_LAYERS_RENDER_SURFACE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "cc/base/cc_export.h" 13 #include "cc/base/cc_export.h"
14 #include "cc/layers/layer_lists.h" 14 #include "cc/layers/layer_lists.h"
15 #include "cc/quads/render_pass.h" 15 #include "cc/quads/render_pass.h"
16 #include "cc/quads/shared_quad_state.h" 16 #include "cc/quads/shared_quad_state.h"
17 #include "ui/gfx/rect.h" 17 #include "ui/gfx/rect.h"
18 #include "ui/gfx/rect_f.h" 18 #include "ui/gfx/rect_f.h"
19 #include "ui/gfx/transform.h" 19 #include "ui/gfx/transform.h"
20 20
21 namespace cc { 21 namespace cc {
22 22
23 class DamageTracker; 23 class DamageTracker;
24 class DelegatedRendererLayerImpl; 24 class DelegatedRendererLayerImpl;
25 class QuadSink; 25 class QuadSink;
26 class RenderPassSink; 26 class RenderPassSink;
27 class LayerImpl; 27 class LayerImpl;
28 template <typename LayerType>
29 class LayerIterator;
28 30
29 struct AppendQuadsData; 31 struct AppendQuadsData;
30 32
31 class CC_EXPORT RenderSurfaceImpl { 33 class CC_EXPORT RenderSurfaceImpl {
32 public: 34 public:
33 explicit RenderSurfaceImpl(LayerImpl* owning_layer); 35 explicit RenderSurfaceImpl(LayerImpl* owning_layer);
34 virtual ~RenderSurfaceImpl(); 36 virtual ~RenderSurfaceImpl();
35 37
36 gfx::PointF ContentRectCenter() const { 38 gfx::PointF ContentRectCenter() const {
37 return gfx::RectF(content_rect_).CenterPoint(); 39 return gfx::RectF(content_rect_).CenterPoint();
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // The nearest ancestor target surface that will contain the contents of this 169 // The nearest ancestor target surface that will contain the contents of this
168 // surface, and that ignores outside occlusion. This can point to itself. 170 // surface, and that ignores outside occlusion. This can point to itself.
169 RenderSurfaceImpl* nearest_occlusion_immune_ancestor_; 171 RenderSurfaceImpl* nearest_occlusion_immune_ancestor_;
170 172
171 scoped_ptr<DamageTracker> damage_tracker_; 173 scoped_ptr<DamageTracker> damage_tracker_;
172 174
173 // For LayerIteratorActions 175 // For LayerIteratorActions
174 int target_render_surface_layer_index_history_; 176 int target_render_surface_layer_index_history_;
175 int current_layer_index_history_; 177 int current_layer_index_history_;
176 178
177 friend struct LayerIteratorActions; 179 friend class LayerIterator<LayerImpl>;
178 180
179 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); 181 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl);
180 }; 182 };
181 183
182 } // namespace cc 184 } // namespace cc
183 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ 185 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/render_surface.h ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698