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

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

Issue 132683003: cc: Rename LayerImpl::DidLoseOutputSurface to ReleaseResources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « cc/layers/io_surface_layer_impl.cc ('k') | 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 LayerAnimationController* layer_animation_controller() { 476 LayerAnimationController* layer_animation_controller() {
477 return layer_animation_controller_.get(); 477 return layer_animation_controller_.get();
478 } 478 }
479 479
480 virtual Region VisibleContentOpaqueRegion() const; 480 virtual Region VisibleContentOpaqueRegion() const;
481 481
482 virtual void DidBecomeActive(); 482 virtual void DidBecomeActive();
483 483
484 virtual void DidBeginTracing(); 484 virtual void DidBeginTracing();
485 485
486 // Indicates that the surface previously used to render this layer 486 // Release resources held by this layer. Called when the output surface
487 // was lost and that a new one has been created. Won't be called 487 // that rendered this layer was lost or a rendering mode switch has occured.
488 // until the new surface has been created successfully. 488 virtual void ReleaseResources();
489 virtual void DidLoseOutputSurface();
490 489
491 ScrollbarAnimationController* scrollbar_animation_controller() const { 490 ScrollbarAnimationController* scrollbar_animation_controller() const {
492 return scrollbar_animation_controller_.get(); 491 return scrollbar_animation_controller_.get();
493 } 492 }
494 493
495 void SetHorizontalScrollbarLayer(ScrollbarLayerImplBase* scrollbar_layer); 494 void SetHorizontalScrollbarLayer(ScrollbarLayerImplBase* scrollbar_layer);
496 ScrollbarLayerImplBase* horizontal_scrollbar_layer() { 495 ScrollbarLayerImplBase* horizontal_scrollbar_layer() {
497 return horizontal_scrollbar_layer_; 496 return horizontal_scrollbar_layer_;
498 } 497 }
499 498
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 DrawProperties<LayerImpl> draw_properties_; 663 DrawProperties<LayerImpl> draw_properties_;
665 664
666 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 665 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
667 666
668 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 667 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
669 }; 668 };
670 669
671 } // namespace cc 670 } // namespace cc
672 671
673 #endif // CC_LAYERS_LAYER_IMPL_H_ 672 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/io_surface_layer_impl.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698