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_TREES_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 class ScrollbarLayerImplBase; | 52 class ScrollbarLayerImplBase; |
53 class TextureMailboxDeleter; | 53 class TextureMailboxDeleter; |
54 class TopControlsManager; | 54 class TopControlsManager; |
55 class UIResourceBitmap; | 55 class UIResourceBitmap; |
56 class UIResourceRequest; | 56 class UIResourceRequest; |
57 struct RendererCapabilitiesImpl; | 57 struct RendererCapabilitiesImpl; |
58 | 58 |
59 // LayerTreeHost->Proxy callback interface. | 59 // LayerTreeHost->Proxy callback interface. |
60 class LayerTreeHostImplClient { | 60 class LayerTreeHostImplClient { |
61 public: | 61 public: |
| 62 virtual void UpdateRendererCapabilitiesOnImplThread() = 0; |
62 virtual void DidLoseOutputSurfaceOnImplThread() = 0; | 63 virtual void DidLoseOutputSurfaceOnImplThread() = 0; |
63 virtual void DidSwapBuffersOnImplThread() = 0; | 64 virtual void DidSwapBuffersOnImplThread() = 0; |
64 virtual void OnSwapBuffersCompleteOnImplThread() = 0; | 65 virtual void OnSwapBuffersCompleteOnImplThread() = 0; |
65 virtual void BeginImplFrame(const BeginFrameArgs& args) = 0; | 66 virtual void BeginImplFrame(const BeginFrameArgs& args) = 0; |
66 virtual void OnCanDrawStateChanged(bool can_draw) = 0; | 67 virtual void OnCanDrawStateChanged(bool can_draw) = 0; |
67 virtual void NotifyReadyToActivate() = 0; | 68 virtual void NotifyReadyToActivate() = 0; |
68 // Please call these 2 functions through | 69 // Please call these 2 functions through |
69 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). | 70 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). |
70 virtual void SetNeedsRedrawOnImplThread() = 0; | 71 virtual void SetNeedsRedrawOnImplThread() = 0; |
71 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0; | 72 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0; |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 int id_; | 656 int id_; |
656 | 657 |
657 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 658 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
658 | 659 |
659 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 660 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
660 }; | 661 }; |
661 | 662 |
662 } // namespace cc | 663 } // namespace cc |
663 | 664 |
664 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 665 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |