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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
280 bool skipped_frames_; | 280 bool skipped_frames_; |
281 std::vector<ui::LatencyInfo> skipped_latency_info_list_; | 281 std::vector<ui::LatencyInfo> skipped_latency_info_list_; |
282 | 282 |
283 std::unique_ptr<ui::Layer> right_gutter_; | 283 std::unique_ptr<ui::Layer> right_gutter_; |
284 std::unique_ptr<ui::Layer> bottom_gutter_; | 284 std::unique_ptr<ui::Layer> bottom_gutter_; |
285 | 285 |
286 // This is the last root background color from a swapped frame. | 286 // This is the last root background color from a swapped frame. |
287 SkColor background_color_; | 287 SkColor background_color_; |
288 | 288 |
289 // State for rendering into a Surface. | 289 // State for rendering into a Surface. |
290 std::unique_ptr<cc::SurfaceIdAllocator> id_allocator_; | 290 std::unique_ptr<cc::LocalSurfaceIdAllocator> id_allocator_; |
boliu
2017/02/22 17:09:14
should forward declare allocator here, and then in
| |
291 std::unique_ptr<cc::SurfaceFactory> surface_factory_; | 291 std::unique_ptr<cc::SurfaceFactory> surface_factory_; |
292 gfx::Size current_surface_size_; | 292 gfx::Size current_surface_size_; |
293 float current_scale_factor_; | 293 float current_scale_factor_; |
294 cc::ReturnedResourceArray surface_returned_resources_; | 294 cc::ReturnedResourceArray surface_returned_resources_; |
295 | 295 |
296 // This lock is the one waiting for a frame of the right size to come back | 296 // This lock is the one waiting for a frame of the right size to come back |
297 // from the renderer/GPU process. It is set from the moment the aura window | 297 // from the renderer/GPU process. It is set from the moment the aura window |
298 // got resized, to the moment we committed the renderer frame of the same | 298 // got resized, to the moment we committed the renderer frame of the same |
299 // size. It keeps track of the size we expect from the renderer, and locks the | 299 // size. It keeps track of the size we expect from the renderer, and locks the |
300 // compositor, as well as the UI for a short time to give a chance to the | 300 // compositor, as well as the UI for a short time to give a chance to the |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
332 // YUV readback pipeline. | 332 // YUV readback pipeline. |
333 std::unique_ptr<display_compositor::ReadbackYUVInterface> | 333 std::unique_ptr<display_compositor::ReadbackYUVInterface> |
334 yuv_readback_pipeline_; | 334 yuv_readback_pipeline_; |
335 | 335 |
336 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 336 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
337 }; | 337 }; |
338 | 338 |
339 } // namespace content | 339 } // namespace content |
340 | 340 |
341 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 341 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
OLD | NEW |