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

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

Issue 18191020: UI Resource Manager (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 5 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual void SendManagedMemoryStats() OVERRIDE; 70 virtual void SendManagedMemoryStats() OVERRIDE;
71 virtual bool IsInsideDraw() OVERRIDE; 71 virtual bool IsInsideDraw() OVERRIDE;
72 virtual void RenewTreePriority() OVERRIDE {} 72 virtual void RenewTreePriority() OVERRIDE {}
73 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) 73 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay)
74 OVERRIDE {} 74 OVERRIDE {}
75 virtual void DidActivatePendingTree() OVERRIDE {} 75 virtual void DidActivatePendingTree() OVERRIDE {}
76 76
77 // Called by the legacy path where RenderWidget does the scheduling. 77 // Called by the legacy path where RenderWidget does the scheduling.
78 void CompositeImmediately(base::TimeTicks frame_begin_time); 78 void CompositeImmediately(base::TimeTicks frame_begin_time);
79 79
80 // LayerTreeHostImplClient UI resource management
81 virtual void UIResourceCreatedOnImplThread(UIResourceId uid) OVERRIDE {}
82 virtual void UIResourceLostOnImplThread(UIResourceId uid) OVERRIDE {}
83
84 // Proxy UI Resource management
85 virtual void CreateUIResource(UIResourceId uid,
86 scoped_refptr<UIResourceBitmap> bitmap,
87 bool async) OVERRIDE {}
88
89 virtual void
90 CreateUIResourceOnImplThread(UIResourceId uid,
91 scoped_refptr<UIResourceBitmap> bitmap,
92 bool async) OVERRIDE {}
93
94 virtual void DeleteUIResource(UIResourceId uid) OVERRIDE {}
95
96 virtual void DeleteUIResourceOnImplThread(UIResourceId uid) OVERRIDE {}
97
80 private: 98 private:
81 explicit SingleThreadProxy(LayerTreeHost* layer_tree_host); 99 explicit SingleThreadProxy(LayerTreeHost* layer_tree_host);
82 100
83 void OnOutputSurfaceInitializeAttempted(bool success); 101 void OnOutputSurfaceInitializeAttempted(bool success);
84 bool CommitAndComposite(base::TimeTicks frame_begin_time, 102 bool CommitAndComposite(base::TimeTicks frame_begin_time,
85 gfx::Rect device_viewport_damage_rect, 103 gfx::Rect device_viewport_damage_rect,
86 bool for_readback, 104 bool for_readback,
87 LayerTreeHostImpl::FrameData* frame); 105 LayerTreeHostImpl::FrameData* frame);
88 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue); 106 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue);
89 bool DoComposite( 107 bool DoComposite(
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 private: 191 private:
174 DebugScopedSetImplThread impl_thread_; 192 DebugScopedSetImplThread impl_thread_;
175 DebugScopedSetMainThreadBlocked main_thread_blocked_; 193 DebugScopedSetMainThreadBlocked main_thread_blocked_;
176 194
177 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 195 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
178 }; 196 };
179 197
180 } // namespace cc 198 } // namespace cc
181 199
182 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 200 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698