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

Unified Diff: cc/thread_proxy.h

Issue 11478039: cc: Force layer tree tests to go idle before exiting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/layer_tree_test_common.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
diff --git a/cc/thread_proxy.h b/cc/thread_proxy.h
index da4f3868eddfb01ff385e71323e828bdcb731ae8..3d73f5261922f728d667f44ad86f9f4fb40fac92 100644
--- a/cc/thread_proxy.h
+++ b/cc/thread_proxy.h
@@ -53,6 +53,7 @@ public:
virtual size_t maxPartialTextureUpdates() const OVERRIDE;
virtual void acquireLayerTextures() OVERRIDE;
virtual void forceSerializeOnSwapBuffers() OVERRIDE;
+ virtual bool commitPendingForTesting() OVERRIDE;
// LayerTreeHostImplClient implementation
virtual void didLoseOutputSurfaceOnImplThread() OVERRIDE;
@@ -106,6 +107,10 @@ private:
void* pixels;
gfx::Rect rect;
};
+ struct CommitPendingRequest {
+ CompletionEvent completion;
+ bool commitPending;
+ };
void forceBeginFrameOnImplThread(CompletionEvent*);
void beginFrameCompleteOnImplThread(CompletionEvent*, ResourceUpdateQueue*);
void beginFrameAbortedOnImplThread();
@@ -126,6 +131,7 @@ private:
ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool forcedDraw);
void forceSerializeOnSwapBuffersOnImplThread(CompletionEvent*);
void setNeedsForcedCommitOnImplThread();
+ void commitPendingOnImplThreadForTesting(CommitPendingRequest* request);
// Accessed on main thread only.
bool m_animateRequested; // Set only when setNeedsAnimate is called.
« no previous file with comments | « cc/test/layer_tree_test_common.cc ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698