| Index: content/browser/renderer_host/render_widget_host_view_android.h
|
| diff --git a/content/browser/renderer_host/render_widget_host_view_android.h b/content/browser/renderer_host/render_widget_host_view_android.h
|
| index 749c5891960643d060909f086d7f97f499deff85..c01120ffa9a09f4dd85d0b58f33c7eddc6462112 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_android.h
|
| +++ b/content/browser/renderer_host/render_widget_host_view_android.h
|
| @@ -25,6 +25,7 @@
|
| #include "gpu/command_buffer/common/mailbox.h"
|
| #include "third_party/skia/include/core/SkColor.h"
|
| #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
|
| +#include "ui/base/android/window_android_observer.h"
|
| #include "ui/gfx/size.h"
|
| #include "ui/gfx/vector2d_f.h"
|
|
|
| @@ -61,10 +62,9 @@ struct NativeWebKeyboardEvent;
|
| class RenderWidgetHostViewAndroid
|
| : public RenderWidgetHostViewBase,
|
| public BrowserAccessibilityDelegate,
|
| - public cc::TextureLayerClient,
|
| - public cc::DelegatedRendererLayerClient,
|
| public cc::DelegatedFrameResourceCollectionClient,
|
| - public ImageTransportFactoryAndroidObserver {
|
| + public ImageTransportFactoryAndroidObserver,
|
| + public ui::WindowAndroidObserver {
|
| public:
|
| RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget,
|
| ContentViewCoreImpl* content_view_core);
|
| @@ -186,19 +186,14 @@ class RenderWidgetHostViewAndroid
|
| virtual gfx::Point GetLastTouchEventLocation() const OVERRIDE;
|
| virtual void FatalAccessibilityTreeError() OVERRIDE;
|
|
|
| - // cc::TextureLayerClient implementation.
|
| - virtual unsigned PrepareTexture() OVERRIDE;
|
| - virtual bool PrepareTextureMailbox(
|
| - cc::TextureMailbox* mailbox,
|
| - scoped_ptr<cc::SingleReleaseCallback>* release_callback,
|
| - bool use_shared_memory) OVERRIDE;
|
| -
|
| - // cc::DelegatedRendererLayerClient implementation.
|
| - virtual void DidCommitFrameData() OVERRIDE;
|
| -
|
| // cc::DelegatedFrameResourceCollectionClient implementation.
|
| virtual void UnusedResourcesAreAvailable() OVERRIDE;
|
|
|
| + // ui::WindowAndroidObserver implementation.
|
| + virtual void OnCompositingDidCommit() OVERRIDE;
|
| + virtual void OnAttachCompositor() OVERRIDE {}
|
| + virtual void OnDetachCompositor() OVERRIDE;
|
| +
|
| // ImageTransportFactoryAndroidObserver implementation.
|
| virtual void OnLostResources() OVERRIDE;
|
|
|
| @@ -339,6 +334,8 @@ class RenderWidgetHostViewAndroid
|
| // Size to use if we have no backing ContentViewCore
|
| gfx::Size default_size_;
|
|
|
| + const bool using_synchronous_compositor_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
|
| };
|
|
|
|
|