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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.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, 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_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 size_t offset, 205 size_t offset,
206 const gfx::Range& range) OVERRIDE; 206 const gfx::Range& range) OVERRIDE;
207 virtual void SelectionBoundsChanged( 207 virtual void SelectionBoundsChanged(
208 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; 208 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE;
209 virtual void ScrollOffsetChanged() OVERRIDE; 209 virtual void ScrollOffsetChanged() OVERRIDE;
210 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 210 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
211 virtual void CopyFromCompositingSurface( 211 virtual void CopyFromCompositingSurface(
212 const gfx::Rect& src_subrect, 212 const gfx::Rect& src_subrect,
213 const gfx::Size& dst_size, 213 const gfx::Size& dst_size,
214 const base::Callback<void(bool, const SkBitmap&)>& callback, 214 const base::Callback<void(bool, const SkBitmap&)>& callback,
215 bool readback_config_rgb565) OVERRIDE; 215 const SkBitmap::Config config) OVERRIDE;
216 virtual void CopyFromCompositingSurfaceToVideoFrame( 216 virtual void CopyFromCompositingSurfaceToVideoFrame(
217 const gfx::Rect& src_subrect, 217 const gfx::Rect& src_subrect,
218 const scoped_refptr<media::VideoFrame>& target, 218 const scoped_refptr<media::VideoFrame>& target,
219 const base::Callback<void(bool)>& callback) OVERRIDE; 219 const base::Callback<void(bool)>& callback) OVERRIDE;
220 virtual bool CanCopyToVideoFrame() const OVERRIDE; 220 virtual bool CanCopyToVideoFrame() const OVERRIDE;
221 virtual bool CanSubscribeFrame() const OVERRIDE; 221 virtual bool CanSubscribeFrame() const OVERRIDE;
222 virtual void BeginFrameSubscription( 222 virtual void BeginFrameSubscription(
223 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; 223 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE;
224 virtual void EndFrameSubscription() OVERRIDE; 224 virtual void EndFrameSubscription() OVERRIDE;
225 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; 225 virtual void OnAcceleratedCompositingStateChange() OVERRIDE;
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 void RemovingFromRootWindow(); 488 void RemovingFromRootWindow();
489 489
490 // Called after commit for the last reference to the texture going away 490 // Called after commit for the last reference to the texture going away
491 // after it was released as the frontbuffer. 491 // after it was released as the frontbuffer.
492 void SetSurfaceNotInUseByCompositor(scoped_refptr<ui::Texture>); 492 void SetSurfaceNotInUseByCompositor(scoped_refptr<ui::Texture>);
493 493
494 // Called after async thumbnailer task completes. Scales and crops the result 494 // Called after async thumbnailer task completes. Scales and crops the result
495 // of the copy. 495 // of the copy.
496 static void CopyFromCompositingSurfaceHasResult( 496 static void CopyFromCompositingSurfaceHasResult(
497 const gfx::Size& dst_size_in_pixel, 497 const gfx::Size& dst_size_in_pixel,
498 bool readback_config_rgb565, 498 const SkBitmap::Config config,
499 const base::Callback<void(bool, const SkBitmap&)>& callback, 499 const base::Callback<void(bool, const SkBitmap&)>& callback,
500 scoped_ptr<cc::CopyOutputResult> result); 500 scoped_ptr<cc::CopyOutputResult> result);
501 static void PrepareTextureCopyOutputResult( 501 static void PrepareTextureCopyOutputResult(
502 const gfx::Size& dst_size_in_pixel, 502 const gfx::Size& dst_size_in_pixel,
503 bool readback_config_rgb565, 503 const SkBitmap::Config config,
504 const base::Callback<void(bool, const SkBitmap&)>& callback, 504 const base::Callback<void(bool, const SkBitmap&)>& callback,
505 scoped_ptr<cc::CopyOutputResult> result); 505 scoped_ptr<cc::CopyOutputResult> result);
506 static void PrepareBitmapCopyOutputResult( 506 static void PrepareBitmapCopyOutputResult(
507 const gfx::Size& dst_size_in_pixel, 507 const gfx::Size& dst_size_in_pixel,
508 const base::Callback<void(bool, const SkBitmap&)>& callback, 508 const base::Callback<void(bool, const SkBitmap&)>& callback,
509 scoped_ptr<cc::CopyOutputResult> result); 509 scoped_ptr<cc::CopyOutputResult> result);
510 static void CopyFromCompositingSurfaceHasResultForVideo( 510 static void CopyFromCompositingSurfaceHasResultForVideo(
511 base::WeakPtr<RenderWidgetHostViewAura> rwhva, 511 base::WeakPtr<RenderWidgetHostViewAura> rwhva,
512 scoped_refptr<OwnedMailbox> subscriber_texture, 512 scoped_refptr<OwnedMailbox> subscriber_texture,
513 scoped_refptr<media::VideoFrame> video_frame, 513 scoped_refptr<media::VideoFrame> video_frame,
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 // passed to windowless plugins like Flash/Silverlight, etc as the 808 // passed to windowless plugins like Flash/Silverlight, etc as the
809 // container window. 809 // container window.
810 HWND plugin_parent_window_; 810 HWND plugin_parent_window_;
811 #endif 811 #endif
812 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 812 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
813 }; 813 };
814 814
815 } // namespace content 815 } // namespace content
816 816
817 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 817 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698