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

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

Issue 135493002: Plumb debug name via debug info (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/layer_impl.cc ('k') | cc/layers/render_surface_impl.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
(...skipping 15 matching lines...) Expand all
26 class RenderPassSink; 26 class RenderPassSink;
27 class LayerImpl; 27 class LayerImpl;
28 28
29 struct AppendQuadsData; 29 struct AppendQuadsData;
30 30
31 class CC_EXPORT RenderSurfaceImpl { 31 class CC_EXPORT RenderSurfaceImpl {
32 public: 32 public:
33 explicit RenderSurfaceImpl(LayerImpl* owning_layer); 33 explicit RenderSurfaceImpl(LayerImpl* owning_layer);
34 virtual ~RenderSurfaceImpl(); 34 virtual ~RenderSurfaceImpl();
35 35
36 std::string Name() const;
37
38 gfx::PointF ContentRectCenter() const { 36 gfx::PointF ContentRectCenter() const {
39 return gfx::RectF(content_rect_).CenterPoint(); 37 return gfx::RectF(content_rect_).CenterPoint();
40 } 38 }
41 39
42 // Returns the rect that encloses the RenderSurfaceImpl including any 40 // Returns the rect that encloses the RenderSurfaceImpl including any
43 // reflection. 41 // reflection.
44 gfx::RectF DrawableContentRect() const; 42 gfx::RectF DrawableContentRect() const;
45 43
46 void SetDrawOpacity(float opacity) { draw_opacity_ = opacity; } 44 void SetDrawOpacity(float opacity) { draw_opacity_ = opacity; }
47 float draw_opacity() const { return draw_opacity_; } 45 float draw_opacity() const { return draw_opacity_; }
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 int target_render_surface_layer_index_history_; 174 int target_render_surface_layer_index_history_;
177 int current_layer_index_history_; 175 int current_layer_index_history_;
178 176
179 friend struct LayerIteratorActions; 177 friend struct LayerIteratorActions;
180 178
181 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); 179 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl);
182 }; 180 };
183 181
184 } // namespace cc 182 } // namespace cc
185 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ 183 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/render_surface_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698