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

Unified Diff: cc/thread_proxy.h

Issue 11348083: Revert 168095 - Merge 167537 - Use message passing for BeginFrameAndCommitState and clean up forced… (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 168100)
+++ cc/thread_proxy.h (working copy)
@@ -81,6 +81,7 @@
explicit ThreadProxy(LayerTreeHost*);
friend class ThreadProxyContextRecreationTimer;
+ // Set on impl thread, read on main thread.
struct BeginFrameAndCommitState {
BeginFrameAndCommitState();
~BeginFrameAndCommitState();
@@ -91,9 +92,10 @@
PrioritizedTextureManager::BackingList evictedContentsTexturesBackings;
size_t memoryAllocationLimitBytes;
};
+ scoped_ptr<BeginFrameAndCommitState> m_pendingBeginFrameRequest;
// Called on main thread
- void beginFrame(BeginFrameAndCommitState* beginFrameState);
+ void beginFrame();
void didCommitAndDrawFrame();
void didCompleteSwapBuffers();
void setAnimationEvents(AnimationEventsVector*, base::Time wallClockTime);
@@ -131,6 +133,7 @@
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;
@@ -174,7 +177,7 @@
size_t m_totalCommitCount;
bool m_deferCommits;
- scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit;
+ bool m_deferredCommitPending;
};
} // 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