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

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

Issue 448133002: Remove unused RenderPassDrawQuad fields (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rpdqdamage: win64 Created 6 years, 4 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/delegated_renderer_layer_impl_unittest.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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // RenderSurface that is being drawn for the current frame. It could still be 109 // RenderSurface that is being drawn for the current frame. It could still be
110 // drawn to as a target, but its output will not be a part of any other 110 // drawn to as a target, but its output will not be a part of any other
111 // surface. 111 // surface.
112 bool contributes_to_drawn_surface() const { 112 bool contributes_to_drawn_surface() const {
113 return contributes_to_drawn_surface_; 113 return contributes_to_drawn_surface_;
114 } 114 }
115 void set_contributes_to_drawn_surface(bool contributes_to_drawn_surface) { 115 void set_contributes_to_drawn_surface(bool contributes_to_drawn_surface) {
116 contributes_to_drawn_surface_ = contributes_to_drawn_surface; 116 contributes_to_drawn_surface_ = contributes_to_drawn_surface;
117 } 117 }
118 118
119 bool ContentsChanged() const;
120
121 void SetContentRect(const gfx::Rect& content_rect); 119 void SetContentRect(const gfx::Rect& content_rect);
122 gfx::Rect content_rect() const { return content_rect_; } 120 gfx::Rect content_rect() const { return content_rect_; }
123 121
124 LayerImplList& layer_list() { return layer_list_; } 122 LayerImplList& layer_list() { return layer_list_; }
125 void AddContributingDelegatedRenderPassLayer(LayerImpl* layer); 123 void AddContributingDelegatedRenderPassLayer(LayerImpl* layer);
126 void ClearLayerLists(); 124 void ClearLayerLists();
127 125
128 int OwningLayerId() const; 126 int OwningLayerId() const;
129 127
130 void ResetPropertyChangedFlag() { surface_property_changed_ = false; } 128 void ResetPropertyChangedFlag() { surface_property_changed_ = false; }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 int target_render_surface_layer_index_history_; 176 int target_render_surface_layer_index_history_;
179 int current_layer_index_history_; 177 int current_layer_index_history_;
180 178
181 friend class LayerIterator<LayerImpl>; 179 friend class LayerIterator<LayerImpl>;
182 180
183 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); 181 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl);
184 }; 182 };
185 183
186 } // namespace cc 184 } // namespace cc
187 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ 185 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/delegated_renderer_layer_impl_unittest.cc ('k') | cc/layers/render_surface_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698