summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content/browser/renderer_host/compositor_impl_android.cc1
-rw-r--r--content/public/browser/android/compositor.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index 0d54124..f8c2504 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -388,6 +388,7 @@ CompositorImpl::OffscreenContextProviderForCompositorThread() {
void CompositorImpl::OnViewContextSwapBuffersPosted() {
TRACE_EVENT0("compositor", "CompositorImpl::OnViewContextSwapBuffersPosted");
+ client_->OnSwapBuffersPosted();
}
void CompositorImpl::OnViewContextSwapBuffersComplete() {
diff --git a/content/public/browser/android/compositor.h b/content/public/browser/android/compositor.h
index 4554074..e289940 100644
--- a/content/public/browser/android/compositor.h
+++ b/content/public/browser/android/compositor.h
@@ -33,6 +33,9 @@ class CONTENT_EXPORT Compositor {
// The compositor has completed swapping a frame.
virtual void OnSwapBuffersCompleted() {}
+
+ // The compositor will eventually swap a frame.
+ virtual void OnSwapBuffersPosted() {}
};
virtual ~Compositor() {}