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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 // Given a RenderWidgetHostViewBase that renders to a Surface that is | 162 // Given a RenderWidgetHostViewBase that renders to a Surface that is |
163 // contained within this class' Surface, find the relative transform between | 163 // contained within this class' Surface, find the relative transform between |
164 // the Surfaces and apply it to a point. Returns false if a Surface has not | 164 // the Surfaces and apply it to a point. Returns false if a Surface has not |
165 // yet been created or if |target_view| is not a descendant RWHV from our | 165 // yet been created or if |target_view| is not a descendant RWHV from our |
166 // client. | 166 // client. |
167 bool TransformPointToCoordSpaceForView(const gfx::Point& point, | 167 bool TransformPointToCoordSpaceForView(const gfx::Point& point, |
168 RenderWidgetHostViewBase* target_view, | 168 RenderWidgetHostViewBase* target_view, |
169 gfx::Point* transformed_point); | 169 gfx::Point* transformed_point); |
170 | 170 |
| 171 bool skipped_frames() const { return skipped_frames_; } |
| 172 |
171 // Exposed for tests. | 173 // Exposed for tests. |
172 cc::SurfaceId SurfaceIdForTesting() const { | 174 cc::SurfaceId SurfaceIdForTesting() const { |
173 return cc::SurfaceId(frame_sink_id_, local_frame_id_); | 175 return cc::SurfaceId(frame_sink_id_, local_frame_id_); |
174 } | 176 } |
175 | 177 |
176 const cc::LocalFrameId& LocalFrameIdForTesting() const { | 178 const cc::LocalFrameId& LocalFrameIdForTesting() const { |
177 return local_frame_id_; | 179 return local_frame_id_; |
178 } | 180 } |
179 | 181 |
180 void OnCompositingDidCommitForTesting(ui::Compositor* compositor) { | 182 void OnCompositingDidCommitForTesting(ui::Compositor* compositor) { |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 // YUV readback pipeline. | 332 // YUV readback pipeline. |
331 std::unique_ptr<display_compositor::ReadbackYUVInterface> | 333 std::unique_ptr<display_compositor::ReadbackYUVInterface> |
332 yuv_readback_pipeline_; | 334 yuv_readback_pipeline_; |
333 | 335 |
334 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 336 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
335 }; | 337 }; |
336 | 338 |
337 } // namespace content | 339 } // namespace content |
338 | 340 |
339 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 341 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
OLD | NEW |