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

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

Issue 250803013: Don't clear render surfaces unnecessarily. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make the bots happy. Created 6 years, 8 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
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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 return use_parent_backface_visibility_; 268 return use_parent_backface_visibility_;
269 } 269 }
270 270
271 bool ShowDebugBorders() const; 271 bool ShowDebugBorders() const;
272 272
273 // These invalidate the host's render surface layer list. The caller 273 // These invalidate the host's render surface layer list. The caller
274 // is responsible for calling set_needs_update_draw_properties on the tree 274 // is responsible for calling set_needs_update_draw_properties on the tree
275 // so that its list can be recreated. 275 // so that its list can be recreated.
276 void CreateRenderSurface(); 276 void CreateRenderSurface();
277 void ClearRenderSurface(); 277 void ClearRenderSurface();
278 void ClearRenderSurfaceLayerList();
278 279
279 DrawProperties<LayerImpl>& draw_properties() { 280 DrawProperties<LayerImpl>& draw_properties() {
280 return draw_properties_; 281 return draw_properties_;
281 } 282 }
282 const DrawProperties<LayerImpl>& draw_properties() const { 283 const DrawProperties<LayerImpl>& draw_properties() const {
283 return draw_properties_; 284 return draw_properties_;
284 } 285 }
285 286
286 // The following are shortcut accessors to get various information from 287 // The following are shortcut accessors to get various information from
287 // draw_properties_ 288 // draw_properties_
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 DrawProperties<LayerImpl> draw_properties_; 674 DrawProperties<LayerImpl> draw_properties_;
674 675
675 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 676 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
676 677
677 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 678 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
678 }; 679 };
679 680
680 } // namespace cc 681 } // namespace cc
681 682
682 #endif // CC_LAYERS_LAYER_IMPL_H_ 683 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | cc/trees/layer_tree_host_common.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698