| 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 3dbd91e0dda9557ebe6b745e794806aef2558d83..fa5f152b71703fe65658e50071e0b984a24bf28b 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_android.h
|
| +++ b/content/browser/renderer_host/render_widget_host_view_android.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
|
| #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
|
|
|
| +#include <map>
|
| +
|
| #include "base/compiler_specific.h"
|
| #include "base/i18n/rtl.h"
|
| #include "base/memory/scoped_ptr.h"
|
| @@ -93,6 +95,11 @@ class RenderWidgetHostViewAndroid : public RenderWidgetHostViewBase {
|
| const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
|
| int gpu_host_id) OVERRIDE;
|
| virtual void AcceleratedSurfaceSuspend() OVERRIDE;
|
| + virtual void AcceleratedSurfaceNew(int32 width_in_pixel,
|
| + int32 height_in_pixel,
|
| + uint64 surface_id,
|
| + const std::string& mailbox_name) OVERRIDE;
|
| + virtual void AcceleratedSurfaceRelease(uint64 surface_id) OVERRIDE;
|
| virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE;
|
| virtual void SetBackground(const SkBitmap& background) OVERRIDE;
|
| virtual void CopyFromCompositingSurface(
|
| @@ -162,6 +169,21 @@ class RenderWidgetHostViewAndroid : public RenderWidgetHostViewBase {
|
| // compositor) for this view.
|
| gfx::GLSurfaceHandle shared_surface_;
|
|
|
| + struct TextureInfo {
|
| + TextureInfo()
|
| + : id(0) {}
|
| +
|
| + uint32 id;
|
| + scoped_array<signed char> mailbox_name;
|
| + };
|
| + typedef std::map<uint64, TextureInfo*> TextureMap;
|
| + // Maps a texture image transport buffer identifier to a texture that
|
| + // we created to host it.
|
| + TextureMap id_to_texture_map_;
|
| +
|
| + // The identifier of the previously received frame
|
| + uint64 current_buffer_id_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
|
| };
|
|
|
|
|