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_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 const SkColorType preferred_color_type); | 144 const SkColorType preferred_color_type); |
145 void CopyFromCompositingSurfaceToVideoFrame( | 145 void CopyFromCompositingSurfaceToVideoFrame( |
146 const gfx::Rect& src_subrect, | 146 const gfx::Rect& src_subrect, |
147 const scoped_refptr<media::VideoFrame>& target, | 147 const scoped_refptr<media::VideoFrame>& target, |
148 const base::Callback<void(const gfx::Rect&, bool)>& callback); | 148 const base::Callback<void(const gfx::Rect&, bool)>& callback); |
149 bool CanCopyToVideoFrame() const; | 149 bool CanCopyToVideoFrame() const; |
150 void BeginFrameSubscription( | 150 void BeginFrameSubscription( |
151 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); | 151 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); |
152 void EndFrameSubscription(); | 152 void EndFrameSubscription(); |
153 bool HasFrameSubscriber() const { return !!frame_subscriber_; } | 153 bool HasFrameSubscriber() const { return !!frame_subscriber_; } |
154 uint32_t GetSurfaceClientId(); | 154 cc::FrameSinkId GetFrameSinkId(); |
155 // Returns a null SurfaceId if this DelegatedFrameHost has not yet created | 155 // Returns a null SurfaceId if this DelegatedFrameHost has not yet created |
156 // a compositor Surface. | 156 // a compositor Surface. |
157 cc::SurfaceId SurfaceIdAtPoint(cc::SurfaceHittestDelegate* delegate, | 157 cc::SurfaceId SurfaceIdAtPoint(cc::SurfaceHittestDelegate* delegate, |
158 const gfx::Point& point, | 158 const gfx::Point& point, |
159 gfx::Point* transformed_point); | 159 gfx::Point* transformed_point); |
160 | 160 |
161 // Given the SurfaceID of a Surface that is contained within this class' | 161 // Given the SurfaceID of a Surface that is contained within this class' |
162 // Surface, find the relative transform between the Surfaces and apply it | 162 // Surface, find the relative transform between the Surfaces and apply it |
163 // to a point. If a Surface has not yet been created this returns the | 163 // to a point. If a Surface has not yet been created this returns the |
164 // same point with no transform applied. | 164 // same point with no transform applied. |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 // YUV readback pipeline. | 328 // YUV readback pipeline. |
329 std::unique_ptr<display_compositor::ReadbackYUVInterface> | 329 std::unique_ptr<display_compositor::ReadbackYUVInterface> |
330 yuv_readback_pipeline_; | 330 yuv_readback_pipeline_; |
331 | 331 |
332 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 332 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
333 }; | 333 }; |
334 | 334 |
335 } // namespace content | 335 } // namespace content |
336 | 336 |
337 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 337 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
OLD | NEW |