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

Unified Diff: cc/trees/thread_proxy.cc

Issue 240163005: Deliver IPC messages together with SwapCompositorFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable browsertest for android for realz this time Created 6 years, 5 months 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
Index: cc/trees/thread_proxy.cc
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
index e505e18a899e0eed322aa6c447ccb3d6deb84dc7..1b2a3d12ce6c87a6b6d72b6889a5e648d54b49b8 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -28,6 +28,8 @@
#include "gpu/command_buffer/client/gles2_interface.h"
#include "ui/gfx/frame_time.h"
+namespace cc {
+
namespace {
// Measured in seconds.
@@ -37,21 +39,19 @@ unsigned int nextBeginFrameId = 0;
class SwapPromiseChecker {
public:
- explicit SwapPromiseChecker(cc::LayerTreeHost* layer_tree_host)
+ explicit SwapPromiseChecker(LayerTreeHost* layer_tree_host)
: layer_tree_host_(layer_tree_host) {}
~SwapPromiseChecker() {
- layer_tree_host_->BreakSwapPromises(cc::SwapPromise::COMMIT_FAILS);
+ layer_tree_host_->BreakSwapPromises(SwapPromise::COMMIT_FAILS);
}
private:
- cc::LayerTreeHost* layer_tree_host_;
+ LayerTreeHost* layer_tree_host_;
};
} // namespace
-namespace cc {
-
struct ThreadProxy::CommitPendingRequest {
CompletionEvent completion;
bool commit_pending;
@@ -855,6 +855,7 @@ void ThreadProxy::BeginMainFrame(
// went through, and input should no longer be throttled, etc.
layer_tree_host()->CommitComplete();
layer_tree_host()->DidBeginMainFrame();
+ layer_tree_host()->BreakSwapPromises(SwapPromise::COMMIT_NO_UPDATE);
return;
}

Powered by Google App Engine
This is Rietveld 408576698