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

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

Issue 143683003: Support format using enum argument for Async readback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code changes as per review. Created 6 years, 10 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 141 const base::Callback<void(bool, const SkBitmap&)>& callback,
142 bool readback_config_rgb565) OVERRIDE; 142 const SkBitmap::Config config) OVERRIDE;
143 virtual void CopyFromCompositingSurfaceToVideoFrame( 143 virtual void CopyFromCompositingSurfaceToVideoFrame(
144 const gfx::Rect& src_subrect, 144 const gfx::Rect& src_subrect,
145 const scoped_refptr<media::VideoFrame>& target, 145 const scoped_refptr<media::VideoFrame>& target,
146 const base::Callback<void(bool)>& callback) OVERRIDE; 146 const base::Callback<void(bool)>& callback) OVERRIDE;
147 virtual bool CanCopyToVideoFrame() const OVERRIDE; 147 virtual bool CanCopyToVideoFrame() const OVERRIDE;
148 virtual void GetScreenInfo(blink::WebScreenInfo* results) OVERRIDE; 148 virtual void GetScreenInfo(blink::WebScreenInfo* results) OVERRIDE;
149 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; 149 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE;
150 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; 150 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE;
151 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, 151 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch,
152 InputEventAckState ack_result) OVERRIDE; 152 InputEventAckState ack_result) OVERRIDE;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 267
268 void AttachLayers(); 268 void AttachLayers();
269 void RemoveLayers(); 269 void RemoveLayers();
270 270
271 void UpdateAnimationSize(const cc::CompositorFrameMetadata& frame_metadata); 271 void UpdateAnimationSize(const cc::CompositorFrameMetadata& frame_metadata);
272 272
273 // Called after async screenshot task completes. Scales and crops the result 273 // Called after async screenshot task completes. Scales and crops the result
274 // of the copy. 274 // of the copy.
275 static void PrepareTextureCopyOutputResult( 275 static void PrepareTextureCopyOutputResult(
276 const gfx::Size& dst_size_in_pixel, 276 const gfx::Size& dst_size_in_pixel,
277 bool readback_config_rgb565, 277 const SkBitmap::Config config,
278 const base::TimeTicks& start_time, 278 const base::TimeTicks& start_time,
279 const base::Callback<void(bool, const SkBitmap&)>& callback, 279 const base::Callback<void(bool, const SkBitmap&)>& callback,
280 scoped_ptr<cc::CopyOutputResult> result); 280 scoped_ptr<cc::CopyOutputResult> result);
281 static void PrepareBitmapCopyOutputResult( 281 static void PrepareBitmapCopyOutputResult(
282 const gfx::Size& dst_size_in_pixel, 282 const gfx::Size& dst_size_in_pixel,
283 const base::TimeTicks& start_time, 283 const base::TimeTicks& start_time,
284 const base::Callback<void(bool, const SkBitmap&)>& callback, 284 const base::Callback<void(bool, const SkBitmap&)>& callback,
285 scoped_ptr<cc::CopyOutputResult> result); 285 scoped_ptr<cc::CopyOutputResult> result);
286 286
287 // DevTools ScreenCast support for Android WebView. 287 // DevTools ScreenCast support for Android WebView.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 const bool using_synchronous_compositor_; 356 const bool using_synchronous_compositor_;
357 357
358 scoped_ptr<DelegatedFrameEvictor> frame_evictor_; 358 scoped_ptr<DelegatedFrameEvictor> frame_evictor_;
359 359
360 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 360 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
361 }; 361 };
362 362
363 } // namespace content 363 } // namespace content
364 364
365 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 365 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698