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

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

Issue 899313003: cc: Split ReleaseResources into Release and Recreate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 5 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const; 540 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const;
541 541
542 virtual void DidBecomeActive(); 542 virtual void DidBecomeActive();
543 543
544 virtual void DidBeginTracing(); 544 virtual void DidBeginTracing();
545 545
546 // Release resources held by this layer. Called when the output surface 546 // Release resources held by this layer. Called when the output surface
547 // that rendered this layer was lost or a rendering mode switch has occured. 547 // that rendered this layer was lost or a rendering mode switch has occured.
548 virtual void ReleaseResources(); 548 virtual void ReleaseResources();
549 549
550 // Recreate resources that are required after they were released by a
551 // ReleaseResources call.
552 virtual void RecreateResources();
553
550 ScrollbarAnimationController* scrollbar_animation_controller() const { 554 ScrollbarAnimationController* scrollbar_animation_controller() const {
551 return scrollbar_animation_controller_.get(); 555 return scrollbar_animation_controller_.get();
552 } 556 }
553 557
554 typedef std::set<ScrollbarLayerImplBase*> ScrollbarSet; 558 typedef std::set<ScrollbarLayerImplBase*> ScrollbarSet;
555 ScrollbarSet* scrollbars() { return scrollbars_.get(); } 559 ScrollbarSet* scrollbars() { return scrollbars_.get(); }
556 void ClearScrollbars(); 560 void ClearScrollbars();
557 void AddScrollbar(ScrollbarLayerImplBase* layer); 561 void AddScrollbar(ScrollbarLayerImplBase* layer);
558 void RemoveScrollbar(ScrollbarLayerImplBase* layer); 562 void RemoveScrollbar(ScrollbarLayerImplBase* layer);
559 bool HasScrollbar(ScrollbarOrientation orientation) const; 563 bool HasScrollbar(ScrollbarOrientation orientation) const;
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 774
771 std::vector<FrameTimingRequest> frame_timing_requests_; 775 std::vector<FrameTimingRequest> frame_timing_requests_;
772 bool frame_timing_requests_dirty_; 776 bool frame_timing_requests_dirty_;
773 777
774 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 778 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
775 }; 779 };
776 780
777 } // namespace cc 781 } // namespace cc
778 782
779 #endif // CC_LAYERS_LAYER_IMPL_H_ 783 #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