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

Unified Diff: cc/trees/proxy_impl.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/trees/proxy_impl.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/proxy_impl.cc
diff --git a/cc/trees/proxy_impl.cc b/cc/trees/proxy_impl.cc
index f69296deb1bb8fdc9540b48093639cc3ccc68720..cf0dd57bb0b10839f4ab37f704fba30c04ee407e 100644
--- a/cc/trees/proxy_impl.cc
+++ b/cc/trees/proxy_impl.cc
@@ -331,11 +331,6 @@ void ProxyImpl::SetEstimatedParentDrawTime(base::TimeDelta draw_time) {
scheduler_->SetEstimatedParentDrawTime(draw_time);
}
-void ProxyImpl::DidSwapBuffersOnImplThread() {
- DCHECK(IsImplThread());
- scheduler_->DidSwapBuffers();
-}
-
void ProxyImpl::DidSwapBuffersCompleteOnImplThread() {
TRACE_EVENT0("cc,benchmark", "ProxyImpl::DidSwapBuffersCompleteOnImplThread");
DCHECK(IsImplThread());
@@ -660,8 +655,10 @@ DrawResult ProxyImpl::DrawAndSwapInternal(bool forced_draw) {
bool start_ready_animations = draw_frame;
layer_tree_host_impl_->UpdateAnimationState(start_ready_animations);
- if (draw_frame)
- layer_tree_host_impl_->SwapBuffers(frame);
+ if (draw_frame) {
+ if (layer_tree_host_impl_->SwapBuffers(frame))
+ scheduler_->DidSwapBuffers();
+ }
// Tell the main thread that the the newly-commited frame was drawn.
if (next_frame_is_newly_committed_frame_) {
« no previous file with comments | « cc/trees/proxy_impl.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698