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

Side by Side Diff: cc/trees/single_thread_proxy.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_SINGLE_THREAD_PROXY_H_ 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_
6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 virtual bool ReduceContentsTextureMemoryOnImplThread( 71 virtual bool ReduceContentsTextureMemoryOnImplThread(
72 size_t limit_bytes, 72 size_t limit_bytes,
73 int priority_cutoff) OVERRIDE; 73 int priority_cutoff) OVERRIDE;
74 virtual void SendManagedMemoryStats() OVERRIDE; 74 virtual void SendManagedMemoryStats() OVERRIDE;
75 virtual bool IsInsideDraw() OVERRIDE; 75 virtual bool IsInsideDraw() OVERRIDE;
76 virtual void RenewTreePriority() OVERRIDE {} 76 virtual void RenewTreePriority() OVERRIDE {}
77 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) 77 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay)
78 OVERRIDE {} 78 OVERRIDE {}
79 virtual void DidActivatePendingTree() OVERRIDE {} 79 virtual void DidActivatePendingTree() OVERRIDE {}
80 virtual void DidManageTiles() OVERRIDE {} 80 virtual void DidManageTiles() OVERRIDE {}
81 virtual void OnGetRendererCapabilities() OVERRIDE {}
81 82
82 // Called by the legacy path where RenderWidget does the scheduling. 83 // Called by the legacy path where RenderWidget does the scheduling.
83 void CompositeImmediately(base::TimeTicks frame_begin_time); 84 void CompositeImmediately(base::TimeTicks frame_begin_time);
84 85
85 private: 86 private:
86 SingleThreadProxy(LayerTreeHost* layer_tree_host, 87 SingleThreadProxy(LayerTreeHost* layer_tree_host,
87 LayerTreeHostSingleThreadClient* client); 88 LayerTreeHostSingleThreadClient* client);
88 89
89 void OnOutputSurfaceInitializeAttempted(bool success); 90 void OnOutputSurfaceInitializeAttempted(bool success);
90 bool CommitAndComposite(base::TimeTicks frame_begin_time, 91 bool CommitAndComposite(base::TimeTicks frame_begin_time,
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 private: 177 private:
177 DebugScopedSetImplThread impl_thread_; 178 DebugScopedSetImplThread impl_thread_;
178 DebugScopedSetMainThreadBlocked main_thread_blocked_; 179 DebugScopedSetMainThreadBlocked main_thread_blocked_;
179 180
180 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 181 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
181 }; 182 };
182 183
183 } // namespace cc 184 } // namespace cc
184 185
185 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 186 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698