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