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

Side by Side Diff: cc/thread_proxy.h

Issue 11280268: Merge 170403 - Use a lock to deal with concurrent access to the m_evictedBackings (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1312/src
Patch Set: 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 CCThreadProxy_h 5 #ifndef CCThreadProxy_h
6 #define CCThreadProxy_h 6 #define CCThreadProxy_h
7 7
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "cc/animation_events.h" 9 #include "cc/animation_events.h"
10 #include "cc/completion_event.h" 10 #include "cc/completion_event.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 friend class ThreadProxyContextRecreationTimer; 82 friend class ThreadProxyContextRecreationTimer;
83 83
84 // Set on impl thread, read on main thread. 84 // Set on impl thread, read on main thread.
85 struct BeginFrameAndCommitState { 85 struct BeginFrameAndCommitState {
86 BeginFrameAndCommitState(); 86 BeginFrameAndCommitState();
87 ~BeginFrameAndCommitState(); 87 ~BeginFrameAndCommitState();
88 88
89 base::TimeTicks monotonicFrameBeginTime; 89 base::TimeTicks monotonicFrameBeginTime;
90 scoped_ptr<ScrollAndScaleSet> scrollInfo; 90 scoped_ptr<ScrollAndScaleSet> scrollInfo;
91 WebKit::WebTransformationMatrix implTransform; 91 WebKit::WebTransformationMatrix implTransform;
92 PrioritizedTextureManager::BackingList evictedContentsTexturesBackings;
93 size_t memoryAllocationLimitBytes; 92 size_t memoryAllocationLimitBytes;
94 }; 93 };
95 scoped_ptr<BeginFrameAndCommitState> m_pendingBeginFrameRequest; 94 scoped_ptr<BeginFrameAndCommitState> m_pendingBeginFrameRequest;
96 95
97 // Called on main thread 96 // Called on main thread
98 void beginFrame(); 97 void beginFrame();
99 void didCommitAndDrawFrame(); 98 void didCommitAndDrawFrame();
100 void didCompleteSwapBuffers(); 99 void didCompleteSwapBuffers();
101 void setAnimationEvents(AnimationEventsVector*, base::Time wallClockTime); 100 void setAnimationEvents(AnimationEventsVector*, base::Time wallClockTime);
102 void beginContextRecreation(); 101 void beginContextRecreation();
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 base::TimeDelta m_totalCommitTime; 175 base::TimeDelta m_totalCommitTime;
177 size_t m_totalCommitCount; 176 size_t m_totalCommitCount;
178 177
179 bool m_deferCommits; 178 bool m_deferCommits;
180 bool m_deferredCommitPending; 179 bool m_deferredCommitPending;
181 }; 180 };
182 181
183 } // namespace cc 182 } // namespace cc
184 183
185 #endif 184 #endif
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