| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |