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_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 <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 virtual void SelectionChanged(const base::string16& text, | 200 virtual void SelectionChanged(const base::string16& text, |
201 size_t offset, | 201 size_t offset, |
202 const gfx::Range& range) OVERRIDE; | 202 const gfx::Range& range) OVERRIDE; |
203 virtual void SelectionBoundsChanged( | 203 virtual void SelectionBoundsChanged( |
204 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; | 204 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; |
205 virtual void ScrollOffsetChanged() OVERRIDE; | 205 virtual void ScrollOffsetChanged() OVERRIDE; |
206 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; | 206 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
207 virtual void CopyFromCompositingSurface( | 207 virtual void CopyFromCompositingSurface( |
208 const gfx::Rect& src_subrect, | 208 const gfx::Rect& src_subrect, |
209 const gfx::Size& dst_size, | 209 const gfx::Size& dst_size, |
210 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; | 210 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 211 bool readback_config_rgb565) OVERRIDE; |
211 virtual void CopyFromCompositingSurfaceToVideoFrame( | 212 virtual void CopyFromCompositingSurfaceToVideoFrame( |
212 const gfx::Rect& src_subrect, | 213 const gfx::Rect& src_subrect, |
213 const scoped_refptr<media::VideoFrame>& target, | 214 const scoped_refptr<media::VideoFrame>& target, |
214 const base::Callback<void(bool)>& callback) OVERRIDE; | 215 const base::Callback<void(bool)>& callback) OVERRIDE; |
215 virtual bool CanCopyToVideoFrame() const OVERRIDE; | 216 virtual bool CanCopyToVideoFrame() const OVERRIDE; |
216 virtual bool CanSubscribeFrame() const OVERRIDE; | 217 virtual bool CanSubscribeFrame() const OVERRIDE; |
217 virtual void BeginFrameSubscription( | 218 virtual void BeginFrameSubscription( |
218 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; | 219 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; |
219 virtual void EndFrameSubscription() OVERRIDE; | 220 virtual void EndFrameSubscription() OVERRIDE; |
220 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; | 221 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 void SetSurfaceNotInUseByCompositor(scoped_refptr<ui::Texture>); | 482 void SetSurfaceNotInUseByCompositor(scoped_refptr<ui::Texture>); |
482 | 483 |
483 // Called after async thumbnailer task completes. Scales and crops the result | 484 // Called after async thumbnailer task completes. Scales and crops the result |
484 // of the copy. | 485 // of the copy. |
485 static void CopyFromCompositingSurfaceHasResult( | 486 static void CopyFromCompositingSurfaceHasResult( |
486 const gfx::Size& dst_size_in_pixel, | 487 const gfx::Size& dst_size_in_pixel, |
487 const base::Callback<void(bool, const SkBitmap&)>& callback, | 488 const base::Callback<void(bool, const SkBitmap&)>& callback, |
488 scoped_ptr<cc::CopyOutputResult> result); | 489 scoped_ptr<cc::CopyOutputResult> result); |
489 static void PrepareTextureCopyOutputResult( | 490 static void PrepareTextureCopyOutputResult( |
490 const gfx::Size& dst_size_in_pixel, | 491 const gfx::Size& dst_size_in_pixel, |
| 492 bool readback_config_rgb565, |
491 const base::Callback<void(bool, const SkBitmap&)>& callback, | 493 const base::Callback<void(bool, const SkBitmap&)>& callback, |
492 scoped_ptr<cc::CopyOutputResult> result); | 494 scoped_ptr<cc::CopyOutputResult> result); |
493 static void PrepareBitmapCopyOutputResult( | 495 static void PrepareBitmapCopyOutputResult( |
494 const gfx::Size& dst_size_in_pixel, | 496 const gfx::Size& dst_size_in_pixel, |
495 const base::Callback<void(bool, const SkBitmap&)>& callback, | 497 const base::Callback<void(bool, const SkBitmap&)>& callback, |
496 scoped_ptr<cc::CopyOutputResult> result); | 498 scoped_ptr<cc::CopyOutputResult> result); |
497 static void CopyFromCompositingSurfaceHasResultForVideo( | 499 static void CopyFromCompositingSurfaceHasResultForVideo( |
498 base::WeakPtr<RenderWidgetHostViewAura> rwhva, | 500 base::WeakPtr<RenderWidgetHostViewAura> rwhva, |
499 scoped_refptr<OwnedMailbox> subscriber_texture, | 501 scoped_refptr<OwnedMailbox> subscriber_texture, |
500 scoped_refptr<media::VideoFrame> video_frame, | 502 scoped_refptr<media::VideoFrame> video_frame, |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 // passed to windowless plugins like Flash/Silverlight, etc as the | 794 // passed to windowless plugins like Flash/Silverlight, etc as the |
793 // container window. | 795 // container window. |
794 HWND plugin_parent_window_; | 796 HWND plugin_parent_window_; |
795 #endif | 797 #endif |
796 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 798 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
797 }; | 799 }; |
798 | 800 |
799 } // namespace content | 801 } // namespace content |
800 | 802 |
801 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 803 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |