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

Unified Diff: cc/surfaces/display.cc

Issue 2143263002: cc: Remove OutputSurfaceClient::DidSwapBuffers(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removedidswap: fix-webview-swap Created 4 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
« no previous file with comments | « cc/surfaces/display.h ('k') | cc/surfaces/surface_display_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display.cc
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc
index f45842d966972bfa7e29b02f09ced84c4e329b7e..1df8e9277d60e3e2bb3a07e35b0bbd492b55d1d2 100644
--- a/cc/surfaces/display.cc
+++ b/cc/surfaces/display.cc
@@ -322,6 +322,8 @@ bool Display::DrawAndSwap() {
}
benchmark_instrumentation::IssueDisplayRenderingStatsEvent();
renderer_->SwapBuffers(std::move(frame.metadata));
+ if (scheduler_)
+ scheduler_->DidSwapBuffers();
} else {
if (have_damage && !size_matches)
aggregator_->SetFullDamageForSurface(current_surface_id_);
@@ -329,18 +331,14 @@ bool Display::DrawAndSwap() {
stored_latency_info_.insert(stored_latency_info_.end(),
frame.metadata.latency_info.begin(),
frame.metadata.latency_info.end());
- DidSwapBuffers();
+ if (scheduler_)
+ scheduler_->DidSwapBuffers();
DidSwapBuffersComplete();
}
return true;
}
-void Display::DidSwapBuffers() {
- if (scheduler_)
- scheduler_->DidSwapBuffers();
-}
-
void Display::DidSwapBuffersComplete() {
if (scheduler_)
scheduler_->DidSwapBuffersComplete();
« no previous file with comments | « cc/surfaces/display.h ('k') | cc/surfaces/surface_display_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698