diff options
author | dtrainor@chromium.org <dtrainor@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-08 21:37:32 +0000 |
---|---|---|
committer | dtrainor@chromium.org <dtrainor@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-08 21:37:32 +0000 |
commit | 12b056ebc70aba3c30222c22bf89d10c70b09146 (patch) | |
tree | 8fc6257c8d0bf94914ed7c9cac36ecffdbf3e9cf /content | |
parent | cacc35caf719f278986e280e5d135005e7d77d93 (diff) | |
download | chromium_src-12b056ebc70aba3c30222c22bf89d10c70b09146.zip chromium_src-12b056ebc70aba3c30222c22bf89d10c70b09146.tar.gz chromium_src-12b056ebc70aba3c30222c22bf89d10c70b09146.tar.bz2 |
Add swap buffers posted method
BUG=228978,228897
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/13771021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192909 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r-- | content/browser/renderer_host/compositor_impl_android.cc | 1 | ||||
-rw-r--r-- | content/public/browser/android/compositor.h | 3 |
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() {} |