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 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 virtual void AcceleratedSurfacePostSubBuffer( | 131 virtual void AcceleratedSurfacePostSubBuffer( |
132 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 132 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
133 int gpu_host_id) OVERRIDE; | 133 int gpu_host_id) OVERRIDE; |
134 virtual void AcceleratedSurfaceSuspend() OVERRIDE; | 134 virtual void AcceleratedSurfaceSuspend() OVERRIDE; |
135 virtual void AcceleratedSurfaceRelease() OVERRIDE; | 135 virtual void AcceleratedSurfaceRelease() OVERRIDE; |
136 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; | 136 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; |
137 virtual void SetBackground(const SkBitmap& background) OVERRIDE; | 137 virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
138 virtual void CopyFromCompositingSurface( | 138 virtual void CopyFromCompositingSurface( |
139 const gfx::Rect& src_subrect, | 139 const gfx::Rect& src_subrect, |
140 const gfx::Size& dst_size, | 140 const gfx::Size& dst_size, |
141 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; | 141 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 142 bool readback_config_rgb565) OVERRIDE; |
142 virtual void CopyFromCompositingSurfaceToVideoFrame( | 143 virtual void CopyFromCompositingSurfaceToVideoFrame( |
143 const gfx::Rect& src_subrect, | 144 const gfx::Rect& src_subrect, |
144 const scoped_refptr<media::VideoFrame>& target, | 145 const scoped_refptr<media::VideoFrame>& target, |
145 const base::Callback<void(bool)>& callback) OVERRIDE; | 146 const base::Callback<void(bool)>& callback) OVERRIDE; |
146 virtual bool CanCopyToVideoFrame() const OVERRIDE; | 147 virtual bool CanCopyToVideoFrame() const OVERRIDE; |
147 virtual void GetScreenInfo(blink::WebScreenInfo* results) OVERRIDE; | 148 virtual void GetScreenInfo(blink::WebScreenInfo* results) OVERRIDE; |
148 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; | 149 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; |
149 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; | 150 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; |
150 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 151 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
151 InputEventAckState ack_result) OVERRIDE; | 152 InputEventAckState ack_result) OVERRIDE; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 | 266 |
266 void AttachLayers(); | 267 void AttachLayers(); |
267 void RemoveLayers(); | 268 void RemoveLayers(); |
268 | 269 |
269 void UpdateAnimationSize(const cc::CompositorFrameMetadata& frame_metadata); | 270 void UpdateAnimationSize(const cc::CompositorFrameMetadata& frame_metadata); |
270 | 271 |
271 // Called after async screenshot task completes. Scales and crops the result | 272 // Called after async screenshot task completes. Scales and crops the result |
272 // of the copy. | 273 // of the copy. |
273 static void PrepareTextureCopyOutputResult( | 274 static void PrepareTextureCopyOutputResult( |
274 const gfx::Size& dst_size_in_pixel, | 275 const gfx::Size& dst_size_in_pixel, |
| 276 bool readback_config_rgb565, |
275 const base::Callback<void(bool, const SkBitmap&)>& callback, | 277 const base::Callback<void(bool, const SkBitmap&)>& callback, |
276 scoped_ptr<cc::CopyOutputResult> result); | 278 scoped_ptr<cc::CopyOutputResult> result); |
277 static void PrepareBitmapCopyOutputResult( | 279 static void PrepareBitmapCopyOutputResult( |
278 const gfx::Size& dst_size_in_pixel, | 280 const gfx::Size& dst_size_in_pixel, |
279 const base::Callback<void(bool, const SkBitmap&)>& callback, | 281 const base::Callback<void(bool, const SkBitmap&)>& callback, |
280 scoped_ptr<cc::CopyOutputResult> result); | 282 scoped_ptr<cc::CopyOutputResult> result); |
281 | 283 |
282 // DevTools ScreenCast support for Android WebView. | 284 // DevTools ScreenCast support for Android WebView. |
283 void SynchronousCopyContents( | 285 void SynchronousCopyContents( |
284 const gfx::Rect& src_subrect_in_pixel, | 286 const gfx::Rect& src_subrect_in_pixel, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 const bool using_synchronous_compositor_; | 353 const bool using_synchronous_compositor_; |
352 | 354 |
353 scoped_ptr<DelegatedFrameEvictor> frame_evictor_; | 355 scoped_ptr<DelegatedFrameEvictor> frame_evictor_; |
354 | 356 |
355 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 357 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
356 }; | 358 }; |
357 | 359 |
358 } // namespace content | 360 } // namespace content |
359 | 361 |
360 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 362 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |