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

Side by Side Diff: cc/single_thread_proxy.h

Issue 11270047: cc: Rename TextureUpdate to ResourceUpdate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sort includes and forward declarations. Created 8 years, 1 month 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/scrollbar_layer.cc ('k') | cc/single_thread_proxy.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 CCSingleThreadProxy_h 5 #ifndef CCSingleThreadProxy_h
6 #define CCSingleThreadProxy_h 6 #define CCSingleThreadProxy_h
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio nEventsVector>, double wallClockTime) OVERRIDE; 55 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio nEventsVector>, double wallClockTime) OVERRIDE;
56 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int priorityCutoff) OVERRIDE; 56 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int priorityCutoff) OVERRIDE;
57 57
58 // Called by the legacy path where RenderWidget does the scheduling. 58 // Called by the legacy path where RenderWidget does the scheduling.
59 void compositeImmediately(); 59 void compositeImmediately();
60 60
61 private: 61 private:
62 explicit SingleThreadProxy(LayerTreeHost*); 62 explicit SingleThreadProxy(LayerTreeHost*);
63 63
64 bool commitAndComposite(); 64 bool commitAndComposite();
65 void doCommit(scoped_ptr<TextureUpdateQueue>); 65 void doCommit(scoped_ptr<ResourceUpdateQueue>);
66 bool doComposite(); 66 bool doComposite();
67 void didSwapFrame(); 67 void didSwapFrame();
68 68
69 // Accessed on main thread only. 69 // Accessed on main thread only.
70 LayerTreeHost* m_layerTreeHost; 70 LayerTreeHost* m_layerTreeHost;
71 bool m_contextLost; 71 bool m_contextLost;
72 72
73 // Holds on to the context between initializeContext() and initializeRendere r() calls. Shouldn't 73 // Holds on to the context between initializeContext() and initializeRendere r() calls. Shouldn't
74 // be used for anything else. 74 // be used for anything else.
75 scoped_ptr<GraphicsContext> m_contextBeforeInitialization; 75 scoped_ptr<GraphicsContext> m_contextBeforeInitialization;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // satisfy assertion checks 126 // satisfy assertion checks
127 class DebugScopedSetImplThreadAndMainThreadBlocked { 127 class DebugScopedSetImplThreadAndMainThreadBlocked {
128 private: 128 private:
129 DebugScopedSetImplThread m_implThread; 129 DebugScopedSetImplThread m_implThread;
130 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; 130 DebugScopedSetMainThreadBlocked m_mainThreadBlocked;
131 }; 131 };
132 132
133 } // namespace cc 133 } // namespace cc
134 134
135 #endif 135 #endif
OLDNEW
« no previous file with comments | « cc/scrollbar_layer.cc ('k') | cc/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698