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

Unified Diff: content/renderer/render_view_impl.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 | « content/renderer/gpu/queue_message_swap_promise_unittest.cc ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 35f971e79c67630b0d3912bad947d85c764db4e3..d894c0b0a97a6c4dc4c25eab7edc3c9ec606b869 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -511,11 +511,13 @@ class AlwaysDrawSwapPromise : public cc::SwapPromise {
void DidActivate() override {}
- void DidSwap(cc::CompositorFrameMetadata* metadata) override {
+ void WillSwap(cc::CompositorFrameMetadata* metadata) override {
DCHECK(!latency_info_.terminated());
metadata->latency_info.push_back(latency_info_);
}
+ void DidSwap() override {}
+
DidNotSwapAction DidNotSwap(DidNotSwapReason reason) override {
return reason == DidNotSwapReason::SWAP_FAILS
? DidNotSwapAction::KEEP_ACTIVE
« no previous file with comments | « content/renderer/gpu/queue_message_swap_promise_unittest.cc ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698