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

Unified Diff: cc/layers/surface_layer.cc

Issue 2580493002: Splitting DidSwap in cc::SwapPromise into WillSwap and DidSwap (Closed)
Patch Set: x Created 4 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 | « blimp/client/core/compositor/blimp_compositor.cc ('k') | cc/output/latency_info_swap_promise.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/surface_layer.cc
diff --git a/cc/layers/surface_layer.cc b/cc/layers/surface_layer.cc
index 0f8bd3380be1aa873bf5ed197dcafabad45a9c51..61704b172c4c4b182afb55930df4bd9adaf3deb7 100644
--- a/cc/layers/surface_layer.cc
+++ b/cc/layers/surface_layer.cc
@@ -26,9 +26,10 @@ class SatisfySwapPromise : public SwapPromise {
private:
void DidActivate() override {}
- void DidSwap(CompositorFrameMetadata* metadata) override {
+ void WillSwap(CompositorFrameMetadata* metadata) override {
metadata->satisfies_sequences.push_back(sequence_.sequence);
}
+ void DidSwap() override {}
DidNotSwapAction DidNotSwap(DidNotSwapReason reason) override {
satisfy_callback_.Run(sequence_);
« no previous file with comments | « blimp/client/core/compositor/blimp_compositor.cc ('k') | cc/output/latency_info_swap_promise.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698