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

Unified Diff: cc/layers/surface_layer.cc

Issue 1126963006: Move VISUAL_STATE promise to activation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Current state (presubmit warnings, cc_unittests tests failing) Created 5 years, 7 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/layers/surface_layer.cc
diff --git a/cc/layers/surface_layer.cc b/cc/layers/surface_layer.cc
index 1a690b6eb025e21522f9b76813c8e9ee914d077f..ae1782e90a5a4257ccb1ff544fae07626e743ccc 100644
--- a/cc/layers/surface_layer.cc
+++ b/cc/layers/surface_layer.cc
@@ -23,7 +23,7 @@ class SatisfySwapPromise : public SwapPromise {
metadata->satisfies_sequences.push_back(sequence_.sequence);
}
- void DidNotSwap(DidNotSwapReason reason) override {
+ void DidNotSwap(DidNotSwap::Reason reason) override {
satisfy_callback_.Run(sequence_);
}
int64 TraceId() const override { return 0; }
@@ -116,7 +116,7 @@ void SurfaceLayer::SatisfyDestroySequence() {
DCHECK(!destroy_sequence_.is_null());
scoped_ptr<SatisfySwapPromise> satisfy(
new SatisfySwapPromise(destroy_sequence_, satisfy_callback_));
- layer_tree_host()->QueueSwapPromise(satisfy.Pass());
+ layer_tree_host()->QueuePromise(satisfy.Pass());
destroy_sequence_ = SurfaceSequence();
}
« no previous file with comments | « cc/cc.gyp ('k') | cc/output/activation_promise.h » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698