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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_; } |
| 118 uint32_t GetSurfaceIdNamespace(); |
118 | 119 |
119 // Exposed for tests. | 120 // Exposed for tests. |
120 cc::DelegatedFrameProvider* FrameProviderForTesting() const { | 121 cc::DelegatedFrameProvider* FrameProviderForTesting() const { |
121 return frame_provider_.get(); | 122 return frame_provider_.get(); |
122 } | 123 } |
123 cc::SurfaceId SurfaceIdForTesting() const { return surface_id_; } | 124 cc::SurfaceId SurfaceIdForTesting() const { return surface_id_; } |
124 void OnCompositingDidCommitForTesting(ui::Compositor* compositor) { | 125 void OnCompositingDidCommitForTesting(ui::Compositor* compositor) { |
125 OnCompositingDidCommit(compositor); | 126 OnCompositingDidCommit(compositor); |
126 } | 127 } |
127 bool ReleasedFrontLockActiveForTesting() const { | 128 bool ReleasedFrontLockActiveForTesting() const { |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 // YUV readback pipeline. | 321 // YUV readback pipeline. |
321 scoped_ptr<content::ReadbackYUVInterface> | 322 scoped_ptr<content::ReadbackYUVInterface> |
322 yuv_readback_pipeline_; | 323 yuv_readback_pipeline_; |
323 | 324 |
324 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 325 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
325 }; | 326 }; |
326 | 327 |
327 } // namespace content | 328 } // namespace content |
328 | 329 |
329 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 330 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |
OLD | NEW |