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

Side by Side Diff: cc/thread_proxy.h

Issue 11411251: Use a lock to deal with concurrent access to the m_evictedBackings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make lock mutable Created 8 years 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/single_thread_proxy.cc ('k') | cc/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 CC_THREAD_PROXY_H_ 5 #ifndef CC_THREAD_PROXY_H_
6 #define CC_THREAD_PROXY_H_ 6 #define CC_THREAD_PROXY_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "cc/animation_events.h" 10 #include "cc/animation_events.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 private: 81 private:
82 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread); 82 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread);
83 83
84 struct BeginFrameAndCommitState { 84 struct BeginFrameAndCommitState {
85 BeginFrameAndCommitState(); 85 BeginFrameAndCommitState();
86 ~BeginFrameAndCommitState(); 86 ~BeginFrameAndCommitState();
87 87
88 base::TimeTicks monotonicFrameBeginTime; 88 base::TimeTicks monotonicFrameBeginTime;
89 scoped_ptr<ScrollAndScaleSet> scrollInfo; 89 scoped_ptr<ScrollAndScaleSet> scrollInfo;
90 gfx::Transform implTransform; 90 gfx::Transform implTransform;
91 PrioritizedResourceManager::BackingList evictedContentsTexturesBackings;
92 size_t memoryAllocationLimitBytes; 91 size_t memoryAllocationLimitBytes;
93 }; 92 };
94 93
95 // Called on main thread 94 // Called on main thread
96 void beginFrame(scoped_ptr<BeginFrameAndCommitState> beginFrameState); 95 void beginFrame(scoped_ptr<BeginFrameAndCommitState> beginFrameState);
97 void didCommitAndDrawFrame(); 96 void didCommitAndDrawFrame();
98 void didCompleteSwapBuffers(); 97 void didCompleteSwapBuffers();
99 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl ockTime); 98 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl ockTime);
100 void beginContextRecreation(); 99 void beginContextRecreation();
101 void tryToRecreateContext(); 100 void tryToRecreateContext();
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 base::TimeDelta m_totalCommitTime; 174 base::TimeDelta m_totalCommitTime;
176 size_t m_totalCommitCount; 175 size_t m_totalCommitCount;
177 176
178 bool m_deferCommits; 177 bool m_deferCommits;
179 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; 178 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit;
180 }; 179 };
181 180
182 } // namespace cc 181 } // namespace cc
183 182
184 #endif // CC_THREAD_PROXY_H_ 183 #endif // CC_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/single_thread_proxy.cc ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698