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

Unified Diff: cc/thread_proxy.h

Issue 11416043: Merge 167537 - Use message passing for BeginFrameAndCommitState and clean up forced commit logic (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1312/src/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/scheduler_state_machine_unittest.cc ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/thread_proxy.h
===================================================================
--- cc/thread_proxy.h (revision 168251)
+++ cc/thread_proxy.h (working copy)
@@ -81,7 +81,6 @@
explicit ThreadProxy(LayerTreeHost*);
friend class ThreadProxyContextRecreationTimer;
- // Set on impl thread, read on main thread.
struct BeginFrameAndCommitState {
BeginFrameAndCommitState();
~BeginFrameAndCommitState();
@@ -92,10 +91,9 @@
PrioritizedTextureManager::BackingList evictedContentsTexturesBackings;
size_t memoryAllocationLimitBytes;
};
- scoped_ptr<BeginFrameAndCommitState> m_pendingBeginFrameRequest;
// Called on main thread
- void beginFrame();
+ void beginFrame(BeginFrameAndCommitState* beginFrameState);
void didCommitAndDrawFrame();
void didCompleteSwapBuffers();
void setAnimationEvents(AnimationEventsVector*, base::Time wallClockTime);
@@ -133,7 +131,6 @@
bool m_animateRequested; // Set only when setNeedsAnimate is called.
bool m_commitRequested; // Set only when setNeedsCommit is called.
bool m_commitRequestSentToImplThread; // Set by setNeedsCommit and setNeedsAnimate.
- bool m_forcedCommitRequested;
scoped_ptr<ThreadProxyContextRecreationTimer> m_contextRecreationTimer;
LayerTreeHost* m_layerTreeHost;
bool m_rendererInitialized;
@@ -177,7 +174,7 @@
size_t m_totalCommitCount;
bool m_deferCommits;
- bool m_deferredCommitPending;
+ scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit;
};
} // namespace cc
« no previous file with comments | « cc/scheduler_state_machine_unittest.cc ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698