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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 void CopyFromCompositingSurfaceToVideoFrame( | 106 void CopyFromCompositingSurfaceToVideoFrame( |
107 const gfx::Rect& src_subrect, | 107 const gfx::Rect& src_subrect, |
108 const scoped_refptr<media::VideoFrame>& target, | 108 const scoped_refptr<media::VideoFrame>& target, |
109 const base::Callback<void(bool)>& callback); | 109 const base::Callback<void(bool)>& callback); |
110 bool CanCopyToVideoFrame() const; | 110 bool CanCopyToVideoFrame() const; |
111 bool CanSubscribeFrame() const; | 111 bool CanSubscribeFrame() const; |
112 void BeginFrameSubscription( | 112 void BeginFrameSubscription( |
113 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); | 113 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); |
114 void EndFrameSubscription(); | 114 void EndFrameSubscription(); |
115 bool HasFrameSubscriber() const { return frame_subscriber_; } | 115 bool HasFrameSubscriber() const { return frame_subscriber_; } |
| 116 void UpdateVSyncParameters(base::TimeTicks timebase, |
| 117 base::TimeDelta interval); |
116 | 118 |
117 // Exposed for tests. | 119 // Exposed for tests. |
118 cc::DelegatedFrameProvider* FrameProviderForTesting() const { | 120 cc::DelegatedFrameProvider* FrameProviderForTesting() const { |
119 return frame_provider_.get(); | 121 return frame_provider_.get(); |
120 } | 122 } |
121 cc::SurfaceId SurfaceIdForTesting() const { return surface_id_; } | 123 cc::SurfaceId SurfaceIdForTesting() const { return surface_id_; } |
122 void OnCompositingDidCommitForTesting(ui::Compositor* compositor) { | 124 void OnCompositingDidCommitForTesting(ui::Compositor* compositor) { |
123 OnCompositingDidCommit(compositor); | 125 OnCompositingDidCommit(compositor); |
124 } | 126 } |
125 bool ReleasedFrontLockActiveForTesting() const { | 127 bool ReleasedFrontLockActiveForTesting() const { |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 // YUV readback pipeline. | 337 // YUV readback pipeline. |
336 scoped_ptr<content::ReadbackYUVInterface> | 338 scoped_ptr<content::ReadbackYUVInterface> |
337 yuv_readback_pipeline_; | 339 yuv_readback_pipeline_; |
338 | 340 |
339 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 341 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
340 }; | 342 }; |
341 | 343 |
342 } // namespace content | 344 } // namespace content |
343 | 345 |
344 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 346 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |
OLD | NEW |