OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 const gfx::Rect& end_rect, | 96 const gfx::Rect& end_rect, |
97 WebKit::WebTextDirection end_direction) OVERRIDE; | 97 WebKit::WebTextDirection end_direction) OVERRIDE; |
98 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; | 98 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; |
99 virtual void AcceleratedSurfaceBuffersSwapped( | 99 virtual void AcceleratedSurfaceBuffersSwapped( |
100 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 100 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
101 int gpu_host_id) OVERRIDE; | 101 int gpu_host_id) OVERRIDE; |
102 virtual void AcceleratedSurfacePostSubBuffer( | 102 virtual void AcceleratedSurfacePostSubBuffer( |
103 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 103 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
104 int gpu_host_id) OVERRIDE; | 104 int gpu_host_id) OVERRIDE; |
105 virtual void AcceleratedSurfaceSuspend() OVERRIDE; | 105 virtual void AcceleratedSurfaceSuspend() OVERRIDE; |
106 virtual void AcceleratedSurfaceNew( | 106 virtual void AcceleratedSurfaceNew(uint64 surface_id, |
107 int32 width_in_pixel, | 107 const std::string& mailbox_name) OVERRIDE; |
108 int32 height_in_pixel, | |
109 uint64 surface_id, | |
110 const std::string& mailbox_name) OVERRIDE; | |
111 virtual void AcceleratedSurfaceRelease() OVERRIDE; | 108 virtual void AcceleratedSurfaceRelease() OVERRIDE; |
112 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; | 109 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; |
113 virtual void SetBackground(const SkBitmap& background) OVERRIDE; | 110 virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
114 virtual void CopyFromCompositingSurface( | 111 virtual void CopyFromCompositingSurface( |
115 const gfx::Rect& src_subrect, | 112 const gfx::Rect& src_subrect, |
116 const gfx::Size& dst_size, | 113 const gfx::Size& dst_size, |
117 const base::Callback<void(bool)>& callback, | 114 const base::Callback<void(bool)>& callback, |
118 skia::PlatformBitmap* output) OVERRIDE; | 115 skia::PlatformBitmap* output) OVERRIDE; |
119 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; | 116 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
120 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; | 117 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 203 |
207 // The identifier of the previously received frame | 204 // The identifier of the previously received frame |
208 uint64 current_buffer_id_; | 205 uint64 current_buffer_id_; |
209 | 206 |
210 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 207 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
211 }; | 208 }; |
212 | 209 |
213 } // namespace content | 210 } // namespace content |
214 | 211 |
215 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 212 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |