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

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

Issue 110583008: Enable Canvas2D hardware acceleration for Android WebView Base URL: https://src.chromium.org/chrome/trunk/src/
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
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Returns true if resources were deleted by this call. 77 // Returns true if resources were deleted by this call.
78 virtual bool ReduceContentsTextureMemoryOnImplThread( 78 virtual bool ReduceContentsTextureMemoryOnImplThread(
79 size_t limit_bytes, 79 size_t limit_bytes,
80 int priority_cutoff) = 0; 80 int priority_cutoff) = 0;
81 virtual void SendManagedMemoryStats() = 0; 81 virtual void SendManagedMemoryStats() = 0;
82 virtual bool IsInsideDraw() = 0; 82 virtual bool IsInsideDraw() = 0;
83 virtual void RenewTreePriority() = 0; 83 virtual void RenewTreePriority() = 0;
84 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) = 0; 84 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) = 0;
85 virtual void DidActivatePendingTree() = 0; 85 virtual void DidActivatePendingTree() = 0;
86 virtual void DidManageTiles() = 0; 86 virtual void DidManageTiles() = 0;
87 virtual void OnGetRendererCapabilities() = 0;
87 88
88 protected: 89 protected:
89 virtual ~LayerTreeHostImplClient() {} 90 virtual ~LayerTreeHostImplClient() {}
90 }; 91 };
91 92
92 // LayerTreeHostImpl owns the LayerImpl trees as well as associated rendering 93 // LayerTreeHostImpl owns the LayerImpl trees as well as associated rendering
93 // state. 94 // state.
94 class CC_EXPORT LayerTreeHostImpl 95 class CC_EXPORT LayerTreeHostImpl
95 : public InputHandler, 96 : public InputHandler,
96 public RendererClient, 97 public RendererClient,
(...skipping 554 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

Powered by Google App Engine
This is Rietveld 408576698