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

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

Issue 2690753002: cc: Move render surface ownership from layers to the effect tree (Closed)
Patch Set: Only update surfaces when can_render_to_separate_surface changes Created 3 years, 10 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
« no previous file with comments | « no previous file | cc/layers/layer_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_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 226
227 void SetShouldCheckBackfaceVisibility(bool should_check_backface_visibility) { 227 void SetShouldCheckBackfaceVisibility(bool should_check_backface_visibility) {
228 should_check_backface_visibility_ = should_check_backface_visibility; 228 should_check_backface_visibility_ = should_check_backface_visibility;
229 } 229 }
230 bool should_check_backface_visibility() const { 230 bool should_check_backface_visibility() const {
231 return should_check_backface_visibility_; 231 return should_check_backface_visibility_;
232 } 232 }
233 233
234 bool ShowDebugBorders() const; 234 bool ShowDebugBorders() const;
235 235
236 // These invalidate the host's render surface layer list. The caller 236 RenderSurfaceImpl* render_surface() const;
237 // is responsible for calling set_needs_update_draw_properties on the tree
238 // so that its list can be recreated.
239 void ClearRenderSurfaceLayerList();
240 void SetHasRenderSurface(bool has_render_surface);
241
242 RenderSurfaceImpl* render_surface() const { return render_surface_.get(); }
243 237
244 // The render surface which this layer draws into. This can be either owned by 238 // The render surface which this layer draws into. This can be either owned by
245 // the same layer or an ancestor of this layer. 239 // the same layer or an ancestor of this layer.
246 RenderSurfaceImpl* render_target(); 240 RenderSurfaceImpl* render_target();
247 const RenderSurfaceImpl* render_target() const; 241 const RenderSurfaceImpl* render_target() const;
248 242
249 DrawProperties& draw_properties() { return draw_properties_; } 243 DrawProperties& draw_properties() { return draw_properties_; }
250 const DrawProperties& draw_properties() const { return draw_properties_; } 244 const DrawProperties& draw_properties() const { return draw_properties_; }
251 245
252 gfx::Transform DrawTransform() const; 246 gfx::Transform DrawTransform() const;
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 bool has_will_change_transform_hint_ : 1; 572 bool has_will_change_transform_hint_ : 1;
579 bool needs_push_properties_ : 1; 573 bool needs_push_properties_ : 1;
580 bool scrollbars_hidden_ : 1; 574 bool scrollbars_hidden_ : 1;
581 575
582 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 576 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
583 }; 577 };
584 578
585 } // namespace cc 579 } // namespace cc
586 580
587 #endif // CC_LAYERS_LAYER_IMPL_H_ 581 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698