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

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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 size_t limit_bytes, 67 size_t limit_bytes,
68 int priority_cutoff) OVERRIDE; 68 int priority_cutoff) OVERRIDE;
69 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; 69 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE;
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 // LayerTreeHostImplClient UI Resource management
78 virtual void UIResourceLostOnImplThread(UIResourceId uid) OVERRIDE;
79
77 // Called by the legacy path where RenderWidget does the scheduling. 80 // Called by the legacy path where RenderWidget does the scheduling.
78 void CompositeImmediately(base::TimeTicks frame_begin_time); 81 void CompositeImmediately(base::TimeTicks frame_begin_time);
79 82
80 private: 83 private:
81 explicit SingleThreadProxy(LayerTreeHost* layer_tree_host); 84 explicit SingleThreadProxy(LayerTreeHost* layer_tree_host);
82 85
83 void OnOutputSurfaceInitializeAttempted(bool success); 86 void OnOutputSurfaceInitializeAttempted(bool success);
84 bool CommitAndComposite(base::TimeTicks frame_begin_time, 87 bool CommitAndComposite(base::TimeTicks frame_begin_time,
85 gfx::Rect device_viewport_damage_rect, 88 gfx::Rect device_viewport_damage_rect,
86 bool for_readback, 89 bool for_readback,
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 private: 176 private:
174 DebugScopedSetImplThread impl_thread_; 177 DebugScopedSetImplThread impl_thread_;
175 DebugScopedSetMainThreadBlocked main_thread_blocked_; 178 DebugScopedSetMainThreadBlocked main_thread_blocked_;
176 179
177 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 180 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
178 }; 181 };
179 182
180 } // namespace cc 183 } // namespace cc
181 184
182 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 185 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698