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

Side by Side Diff: cc/thread_proxy.h

Issue 10690168: Aura: Resize locks with --ui-enable-threaded-compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Defer commits and rebase. Created 8 years, 2 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 | Annotate | Revision Log
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 CCThreadProxy_h 5 #ifndef CCThreadProxy_h
6 #define CCThreadProxy_h 6 #define CCThreadProxy_h
7 7
8 #include "CCAnimationEvents.h" 8 #include "CCAnimationEvents.h"
9 #include "CCCompletionEvent.h" 9 #include "CCCompletionEvent.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 27 matching lines...) Expand all
38 virtual void setSurfaceReady() OVERRIDE; 38 virtual void setSurfaceReady() OVERRIDE;
39 virtual void setVisible(bool) OVERRIDE; 39 virtual void setVisible(bool) OVERRIDE;
40 virtual bool initializeRenderer() OVERRIDE; 40 virtual bool initializeRenderer() OVERRIDE;
41 virtual bool recreateContext() OVERRIDE; 41 virtual bool recreateContext() OVERRIDE;
42 virtual void renderingStats(RenderingStats*) OVERRIDE; 42 virtual void renderingStats(RenderingStats*) OVERRIDE;
43 virtual const RendererCapabilities& rendererCapabilities() const OVERRIDE; 43 virtual const RendererCapabilities& rendererCapabilities() const OVERRIDE;
44 virtual void loseContext() OVERRIDE; 44 virtual void loseContext() OVERRIDE;
45 virtual void setNeedsAnimate() OVERRIDE; 45 virtual void setNeedsAnimate() OVERRIDE;
46 virtual void setNeedsCommit() OVERRIDE; 46 virtual void setNeedsCommit() OVERRIDE;
47 virtual void setNeedsRedraw() OVERRIDE; 47 virtual void setNeedsRedraw() OVERRIDE;
48 virtual void setDeferCommits(bool) OVERRIDE;
48 virtual bool commitRequested() const OVERRIDE; 49 virtual bool commitRequested() const OVERRIDE;
49 virtual void didAddAnimation() OVERRIDE { } 50 virtual void didAddAnimation() OVERRIDE { }
50 virtual void start() OVERRIDE; 51 virtual void start() OVERRIDE;
51 virtual void stop() OVERRIDE; 52 virtual void stop() OVERRIDE;
52 virtual size_t maxPartialTextureUpdates() const OVERRIDE; 53 virtual size_t maxPartialTextureUpdates() const OVERRIDE;
53 virtual void acquireLayerTextures() OVERRIDE; 54 virtual void acquireLayerTextures() OVERRIDE;
54 virtual void forceSerializeOnSwapBuffers() OVERRIDE; 55 virtual void forceSerializeOnSwapBuffers() OVERRIDE;
55 56
56 // LayerTreeHostImplClient implementation 57 // LayerTreeHostImplClient implementation
57 virtual void didLoseContextOnImplThread() OVERRIDE; 58 virtual void didLoseContextOnImplThread() OVERRIDE;
(...skipping 26 matching lines...) Expand all
84 BeginFrameAndCommitState(); 85 BeginFrameAndCommitState();
85 ~BeginFrameAndCommitState(); 86 ~BeginFrameAndCommitState();
86 87
87 double monotonicFrameBeginTime; 88 double monotonicFrameBeginTime;
88 scoped_ptr<ScrollAndScaleSet> scrollInfo; 89 scoped_ptr<ScrollAndScaleSet> scrollInfo;
89 WebKit::WebTransformationMatrix implTransform; 90 WebKit::WebTransformationMatrix implTransform;
90 PrioritizedTextureManager::BackingList evictedContentsTexturesBackings; 91 PrioritizedTextureManager::BackingList evictedContentsTexturesBackings;
91 size_t memoryAllocationLimitBytes; 92 size_t memoryAllocationLimitBytes;
92 }; 93 };
93 scoped_ptr<BeginFrameAndCommitState> m_pendingBeginFrameRequest; 94 scoped_ptr<BeginFrameAndCommitState> m_pendingBeginFrameRequest;
95 scoped_ptr<BeginFrameAndCommitState> m_deferredBeginFrameRequest;
jamesr 2012/10/23 17:50:44 This is unnecessary. If commits are deferred, wha
jonathan.backer 2012/10/23 19:26:42 Done.
94 96
95 // Called on main thread 97 // Called on main thread
96 void beginFrame(); 98 void beginFrame();
97 void didCommitAndDrawFrame(); 99 void didCommitAndDrawFrame();
98 void didCompleteSwapBuffers(); 100 void didCompleteSwapBuffers();
99 void setAnimationEvents(AnimationEventsVector*, double wallClockTime); 101 void setAnimationEvents(AnimationEventsVector*, double wallClockTime);
100 void beginContextRecreation(); 102 void beginContextRecreation();
101 void tryToRecreateContext(); 103 void tryToRecreateContext();
102 104
103 // Called on impl thread 105 // Called on impl thread
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 173
172 bool m_renderVSyncEnabled; 174 bool m_renderVSyncEnabled;
173 175
174 base::TimeDelta m_totalCommitTime; 176 base::TimeDelta m_totalCommitTime;
175 size_t m_totalCommitCount; 177 size_t m_totalCommitCount;
176 }; 178 };
177 179
178 } 180 }
179 181
180 #endif 182 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698