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

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 124063003: [NOT FOR COMMIT] Hacks to get hardware canvas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: only cc changes left 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/fake_layer_tree_host_impl_client.h ('k') | cc/trees/layer_tree_host_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_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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 class ScrollbarLayerImplBase; 51 class ScrollbarLayerImplBase;
52 class TextureMailboxDeleter; 52 class TextureMailboxDeleter;
53 class TopControlsManager; 53 class TopControlsManager;
54 class UIResourceBitmap; 54 class UIResourceBitmap;
55 class UIResourceRequest; 55 class UIResourceRequest;
56 struct RendererCapabilitiesImpl; 56 struct RendererCapabilitiesImpl;
57 57
58 // LayerTreeHost->Proxy callback interface. 58 // LayerTreeHost->Proxy callback interface.
59 class LayerTreeHostImplClient { 59 class LayerTreeHostImplClient {
60 public: 60 public:
61 virtual void UpdateRendererCapabilitiesOnImplThread() = 0;
61 virtual void DidLoseOutputSurfaceOnImplThread() = 0; 62 virtual void DidLoseOutputSurfaceOnImplThread() = 0;
62 virtual void DidSwapBuffersOnImplThread() = 0; 63 virtual void DidSwapBuffersOnImplThread() = 0;
63 virtual void OnSwapBuffersCompleteOnImplThread() = 0; 64 virtual void OnSwapBuffersCompleteOnImplThread() = 0;
64 virtual void BeginImplFrame(const BeginFrameArgs& args) = 0; 65 virtual void BeginImplFrame(const BeginFrameArgs& args) = 0;
65 virtual void OnCanDrawStateChanged(bool can_draw) = 0; 66 virtual void OnCanDrawStateChanged(bool can_draw) = 0;
66 virtual void NotifyReadyToActivate() = 0; 67 virtual void NotifyReadyToActivate() = 0;
67 // Please call these 2 functions through 68 // Please call these 2 functions through
68 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). 69 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect().
69 virtual void SetNeedsRedrawOnImplThread() = 0; 70 virtual void SetNeedsRedrawOnImplThread() = 0;
70 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0; 71 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0;
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 int id_; 652 int id_;
652 653
653 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 654 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
654 655
655 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 656 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
656 }; 657 };
657 658
658 } // namespace cc 659 } // namespace cc
659 660
660 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 661 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host_impl_client.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698