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

Unified Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 2444563002: cc: Remove "SwapBuffers" naming from LayerTreeHostSingleThreadClient (Closed)
Patch Set: swapsinglethread: fix-name-in-browsertest Created 4 years, 2 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: content/browser/renderer_host/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index 450adca102409a3c63450bda187a371c81bf584a..a8c57db192d8e3b8339e29811b4da3304c541210 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -774,8 +774,8 @@ bool CompositorImpl::SupportsETC1NonPowerOfTwo() const {
return gpu_capabilities_.texture_format_etc1_npot;
}
-void CompositorImpl::DidPostSwapBuffers() {
- TRACE_EVENT0("compositor", "CompositorImpl::DidPostSwapBuffers");
+void CompositorImpl::DidSubmitCompositorFrame() {
+ TRACE_EVENT0("compositor", "CompositorImpl::DidSubmitCompositorFrame");
pending_swapbuffers_++;
}
@@ -786,13 +786,8 @@ void CompositorImpl::DidReceiveCompositorFrameAck() {
client_->OnSwapBuffersCompleted(pending_swapbuffers_);
}
-void CompositorImpl::DidAbortSwapBuffers() {
- TRACE_EVENT0("compositor", "CompositorImpl::DidAbortSwapBuffers");
- // This really gets called only once from
- // SingleThreadProxy::DidLoseCompositorFrameSinkOnImplThread() when the
- // context was lost.
- if (host_->IsVisible())
- host_->SetNeedsCommit();
+void CompositorImpl::DidLoseCompositorFrameSink() {
+ TRACE_EVENT0("compositor", "CompositorImpl::DidLoseCompositorFrameSink");
client_->OnSwapBuffersCompleted(0);
}
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.h ('k') | content/browser/renderer_host/delegated_frame_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698