| OLD | NEW | 
|    1 // Copyright 2014 The Chromium Authors. All rights reserved. |    1 // Copyright 2014 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_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |    5 #ifndef CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 
|    6 #define CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |    6 #define CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 
|    7  |    7  | 
|    8 #include "cc/layers/delegated_frame_provider.h" |    8 #include "cc/layers/delegated_frame_provider.h" | 
|    9 #include "cc/layers/delegated_frame_resource_collection.h" |    9 #include "cc/layers/delegated_frame_resource_collection.h" | 
|   10 #include "cc/output/copy_output_result.h" |   10 #include "cc/output/copy_output_result.h" | 
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   97   void WasResized(); |   97   void WasResized(); | 
|   98   bool HasSavedFrame(); |   98   bool HasSavedFrame(); | 
|   99   gfx::Size GetRequestedRendererSize() const; |   99   gfx::Size GetRequestedRendererSize() const; | 
|  100   void SetCompositor(ui::Compositor* compositor); |  100   void SetCompositor(ui::Compositor* compositor); | 
|  101   void ResetCompositor(); |  101   void ResetCompositor(); | 
|  102   // Note: |src_subset| is specified in DIP dimensions while |output_size| |  102   // Note: |src_subset| is specified in DIP dimensions while |output_size| | 
|  103   // expects pixels. |  103   // expects pixels. | 
|  104   void CopyFromCompositingSurface(const gfx::Rect& src_subrect, |  104   void CopyFromCompositingSurface(const gfx::Rect& src_subrect, | 
|  105                                   const gfx::Size& output_size, |  105                                   const gfx::Size& output_size, | 
|  106                                   ReadbackRequestCallback& callback, |  106                                   ReadbackRequestCallback& callback, | 
|  107                                   const SkColorType color_type); |  107                                   const SkColorType preferred_color_type); | 
|  108   void CopyFromCompositingSurfaceToVideoFrame( |  108   void CopyFromCompositingSurfaceToVideoFrame( | 
|  109       const gfx::Rect& src_subrect, |  109       const gfx::Rect& src_subrect, | 
|  110       const scoped_refptr<media::VideoFrame>& target, |  110       const scoped_refptr<media::VideoFrame>& target, | 
|  111       const base::Callback<void(bool)>& callback); |  111       const base::Callback<void(bool)>& callback); | 
|  112   bool CanCopyToVideoFrame() const; |  112   bool CanCopyToVideoFrame() const; | 
|  113   bool CanSubscribeFrame() const; |  113   bool CanSubscribeFrame() const; | 
|  114   void BeginFrameSubscription( |  114   void BeginFrameSubscription( | 
|  115       scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); |  115       scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); | 
|  116   void EndFrameSubscription(); |  116   void EndFrameSubscription(); | 
|  117   bool HasFrameSubscriber() const { return frame_subscriber_; } |  117   bool HasFrameSubscriber() const { return frame_subscriber_; } | 
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  320   // YUV readback pipeline. |  320   // YUV readback pipeline. | 
|  321   scoped_ptr<content::ReadbackYUVInterface> |  321   scoped_ptr<content::ReadbackYUVInterface> | 
|  322       yuv_readback_pipeline_; |  322       yuv_readback_pipeline_; | 
|  323  |  323  | 
|  324   scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |  324   scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 
|  325 }; |  325 }; | 
|  326  |  326  | 
|  327 }  // namespace content |  327 }  // namespace content | 
|  328  |  328  | 
|  329 #endif  // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |  329 #endif  // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 
| OLD | NEW |