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