Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 88033002: Add RGB565 Texture readback support in gl_helper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corrected indentation. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 virtual void AcceleratedSurfacePostSubBuffer( 130 virtual void AcceleratedSurfacePostSubBuffer(
131 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 131 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
132 int gpu_host_id) OVERRIDE; 132 int gpu_host_id) OVERRIDE;
133 virtual void AcceleratedSurfaceSuspend() OVERRIDE; 133 virtual void AcceleratedSurfaceSuspend() OVERRIDE;
134 virtual void AcceleratedSurfaceRelease() OVERRIDE; 134 virtual void AcceleratedSurfaceRelease() OVERRIDE;
135 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; 135 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE;
136 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 136 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
137 virtual void CopyFromCompositingSurface( 137 virtual void CopyFromCompositingSurface(
138 const gfx::Rect& src_subrect, 138 const gfx::Rect& src_subrect,
139 const gfx::Size& dst_size, 139 const gfx::Size& dst_size,
140 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; 140 const base::Callback<void(bool, const SkBitmap&)>& callback,
141 bool readback_config_rgb565) OVERRIDE;
141 virtual void CopyFromCompositingSurfaceToVideoFrame( 142 virtual void CopyFromCompositingSurfaceToVideoFrame(
142 const gfx::Rect& src_subrect, 143 const gfx::Rect& src_subrect,
143 const scoped_refptr<media::VideoFrame>& target, 144 const scoped_refptr<media::VideoFrame>& target,
144 const base::Callback<void(bool)>& callback) OVERRIDE; 145 const base::Callback<void(bool)>& callback) OVERRIDE;
145 virtual bool CanCopyToVideoFrame() const OVERRIDE; 146 virtual bool CanCopyToVideoFrame() const OVERRIDE;
146 virtual void GetScreenInfo(blink::WebScreenInfo* results) OVERRIDE; 147 virtual void GetScreenInfo(blink::WebScreenInfo* results) OVERRIDE;
147 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; 148 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE;
148 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; 149 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE;
149 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, 150 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch,
150 InputEventAckState ack_result) OVERRIDE; 151 InputEventAckState ack_result) OVERRIDE;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 265
265 void AttachLayers(); 266 void AttachLayers();
266 void RemoveLayers(); 267 void RemoveLayers();
267 268
268 void UpdateAnimationSize(const cc::CompositorFrameMetadata& frame_metadata); 269 void UpdateAnimationSize(const cc::CompositorFrameMetadata& frame_metadata);
269 270
270 // Called after async screenshot task completes. Scales and crops the result 271 // Called after async screenshot task completes. Scales and crops the result
271 // of the copy. 272 // of the copy.
272 static void PrepareTextureCopyOutputResult( 273 static void PrepareTextureCopyOutputResult(
273 const gfx::Size& dst_size_in_pixel, 274 const gfx::Size& dst_size_in_pixel,
275 bool readback_config_rgb565,
274 const base::Callback<void(bool, const SkBitmap&)>& callback, 276 const base::Callback<void(bool, const SkBitmap&)>& callback,
275 scoped_ptr<cc::CopyOutputResult> result); 277 scoped_ptr<cc::CopyOutputResult> result);
276 static void PrepareBitmapCopyOutputResult( 278 static void PrepareBitmapCopyOutputResult(
277 const gfx::Size& dst_size_in_pixel, 279 const gfx::Size& dst_size_in_pixel,
278 const base::Callback<void(bool, const SkBitmap&)>& callback, 280 const base::Callback<void(bool, const SkBitmap&)>& callback,
279 scoped_ptr<cc::CopyOutputResult> result); 281 scoped_ptr<cc::CopyOutputResult> result);
280 282
281 // DevTools ScreenCast support for Android WebView. 283 // DevTools ScreenCast support for Android WebView.
282 void SynchronousCopyContents( 284 void SynchronousCopyContents(
283 const gfx::Rect& src_subrect_in_pixel, 285 const gfx::Rect& src_subrect_in_pixel,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 const bool using_synchronous_compositor_; 352 const bool using_synchronous_compositor_;
351 353
352 scoped_ptr<DelegatedFrameEvictor> frame_evictor_; 354 scoped_ptr<DelegatedFrameEvictor> frame_evictor_;
353 355
354 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 356 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
355 }; 357 };
356 358
357 } // namespace content 359 } // namespace content
358 360
359 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 361 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698