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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // a compositor Surface. | 164 // a compositor Surface. |
165 cc::SurfaceId SurfaceIdAtPoint(cc::SurfaceHittestDelegate* delegate, | 165 cc::SurfaceId SurfaceIdAtPoint(cc::SurfaceHittestDelegate* delegate, |
166 const gfx::Point& point, | 166 const gfx::Point& point, |
167 gfx::Point* transformed_point); | 167 gfx::Point* transformed_point); |
168 | 168 |
169 // Given the SurfaceID of a Surface that is contained within this class' | 169 // Given the SurfaceID of a Surface that is contained within this class' |
170 // Surface, find the relative transform between the Surfaces and apply it | 170 // Surface, find the relative transform between the Surfaces and apply it |
171 // to a point. If a Surface has not yet been created this returns the | 171 // to a point. If a Surface has not yet been created this returns the |
172 // same point with no transform applied. | 172 // same point with no transform applied. |
173 void TransformPointToLocalCoordSpace(const gfx::Point& point, | 173 void TransformPointToLocalCoordSpace(const gfx::Point& point, |
174 cc::SurfaceId original_surface, | 174 const cc::SurfaceId& original_surface, |
175 gfx::Point* transformed_point); | 175 gfx::Point* transformed_point); |
176 | 176 |
177 // Exposed for tests. | 177 // Exposed for tests. |
178 cc::SurfaceId SurfaceIdForTesting() const { return surface_id_; } | 178 cc::SurfaceId SurfaceIdForTesting() const { return surface_id_; } |
179 void OnCompositingDidCommitForTesting(ui::Compositor* compositor) { | 179 void OnCompositingDidCommitForTesting(ui::Compositor* compositor) { |
180 OnCompositingDidCommit(compositor); | 180 OnCompositingDidCommit(compositor); |
181 } | 181 } |
182 bool ReleasedFrontLockActiveForTesting() const { | 182 bool ReleasedFrontLockActiveForTesting() const { |
183 return !!released_front_lock_.get(); | 183 return !!released_front_lock_.get(); |
184 } | 184 } |
(...skipping 143 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 |