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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
102 bool CanCopyToVideoFrame() const; | 102 bool CanCopyToVideoFrame() const; |
103 bool CanSubscribeFrame() const; | 103 bool CanSubscribeFrame() const; |
104 void BeginFrameSubscription( | 104 void BeginFrameSubscription( |
105 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); | 105 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); |
106 void EndFrameSubscription(); | 106 void EndFrameSubscription(); |
107 | 107 |
108 // Exposed for tests. | 108 // Exposed for tests. |
109 cc::DelegatedFrameProvider* FrameProviderForTesting() const { | 109 cc::DelegatedFrameProvider* FrameProviderForTesting() const { |
110 return frame_provider_.get(); | 110 return frame_provider_.get(); |
111 } | 111 } |
112 gfx::Size CurrentFrameSizeInDIPForTesting() const { | 112 gfx::Size CurrentFrameSizeInDIPForTesting() const { |
danakj
2014/05/20 18:20:53
does anything call this now? can it go away?
piman
2014/05/20 18:53:05
Gone, thanks.
| |
113 return current_frame_size_in_dip_; | 113 return current_frame_size_in_dip_; |
114 } | 114 } |
115 void OnCompositingDidCommitForTesting(ui::Compositor* compositor) { | 115 void OnCompositingDidCommitForTesting(ui::Compositor* compositor) { |
116 OnCompositingDidCommit(compositor); | 116 OnCompositingDidCommit(compositor); |
117 } | 117 } |
118 bool ShouldCreateResizeLockForTesting() { return ShouldCreateResizeLock(); } | |
118 | 119 |
119 private: | 120 private: |
120 friend class DelegatedFrameHostClient; | 121 friend class DelegatedFrameHostClient; |
121 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 122 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
122 SkippedDelegatedFrames); | 123 SkippedDelegatedFrames); |
123 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 124 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
124 DiscardDelegatedFramesWithLocking); | 125 DiscardDelegatedFramesWithLocking); |
125 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraCopyRequestTest, | 126 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraCopyRequestTest, |
126 DestroyedAfterCopyRequest); | 127 DestroyedAfterCopyRequest); |
127 | 128 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
277 // YUV readback pipeline. | 278 // YUV readback pipeline. |
278 scoped_ptr<content::ReadbackYUVInterface> | 279 scoped_ptr<content::ReadbackYUVInterface> |
279 yuv_readback_pipeline_; | 280 yuv_readback_pipeline_; |
280 | 281 |
281 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 282 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
282 }; | 283 }; |
283 | 284 |
284 } // namespace content | 285 } // namespace content |
285 | 286 |
286 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 287 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |
OLD | NEW |