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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 void SetSurfaceNotInUseByCompositor(scoped_refptr<ui::Texture>); | 480 void SetSurfaceNotInUseByCompositor(scoped_refptr<ui::Texture>); |
481 | 481 |
482 // Called after async thumbnailer task completes. Scales and crops the result | 482 // Called after async thumbnailer task completes. Scales and crops the result |
483 // of the copy. | 483 // of the copy. |
484 static void CopyFromCompositingSurfaceHasResult( | 484 static void CopyFromCompositingSurfaceHasResult( |
485 const gfx::Size& dst_size_in_pixel, | 485 const gfx::Size& dst_size_in_pixel, |
486 const base::Callback<void(bool, const SkBitmap&)>& callback, | 486 const base::Callback<void(bool, const SkBitmap&)>& callback, |
487 scoped_ptr<cc::CopyOutputResult> result); | 487 scoped_ptr<cc::CopyOutputResult> result); |
488 static void PrepareTextureCopyOutputResult( | 488 static void PrepareTextureCopyOutputResult( |
489 const gfx::Size& dst_size_in_pixel, | 489 const gfx::Size& dst_size_in_pixel, |
| 490 bool readback_config_rgb565, |
490 const base::Callback<void(bool, const SkBitmap&)>& callback, | 491 const base::Callback<void(bool, const SkBitmap&)>& callback, |
491 scoped_ptr<cc::CopyOutputResult> result); | 492 scoped_ptr<cc::CopyOutputResult> result); |
492 static void PrepareBitmapCopyOutputResult( | 493 static void PrepareBitmapCopyOutputResult( |
493 const gfx::Size& dst_size_in_pixel, | 494 const gfx::Size& dst_size_in_pixel, |
494 const base::Callback<void(bool, const SkBitmap&)>& callback, | 495 const base::Callback<void(bool, const SkBitmap&)>& callback, |
495 scoped_ptr<cc::CopyOutputResult> result); | 496 scoped_ptr<cc::CopyOutputResult> result); |
496 static void CopyFromCompositingSurfaceHasResultForVideo( | 497 static void CopyFromCompositingSurfaceHasResultForVideo( |
497 base::WeakPtr<RenderWidgetHostViewAura> rwhva, | 498 base::WeakPtr<RenderWidgetHostViewAura> rwhva, |
498 scoped_refptr<OwnedMailbox> subscriber_texture, | 499 scoped_refptr<OwnedMailbox> subscriber_texture, |
499 scoped_refptr<media::VideoFrame> video_frame, | 500 scoped_refptr<media::VideoFrame> video_frame, |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
791 // passed to windowless plugins like Flash/Silverlight, etc as the | 792 // passed to windowless plugins like Flash/Silverlight, etc as the |
792 // container window. | 793 // container window. |
793 HWND plugin_parent_window_; | 794 HWND plugin_parent_window_; |
794 #endif | 795 #endif |
795 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 796 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
796 }; | 797 }; |
797 | 798 |
798 } // namespace content | 799 } // namespace content |
799 | 800 |
800 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 801 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |