| 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_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |
| 6 #define CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 | 283 |
| 284 // The number of delegated frame acks that are pending, to delay resource | 284 // The number of delegated frame acks that are pending, to delay resource |
| 285 // returns until the acks are sent. | 285 // returns until the acks are sent. |
| 286 int pending_delegated_ack_count_; | 286 int pending_delegated_ack_count_; |
| 287 | 287 |
| 288 // True after a delegated frame has been skipped, until a frame is not | 288 // True after a delegated frame has been skipped, until a frame is not |
| 289 // skipped. | 289 // skipped. |
| 290 bool skipped_frames_; | 290 bool skipped_frames_; |
| 291 std::vector<ui::LatencyInfo> skipped_latency_info_list_; | 291 std::vector<ui::LatencyInfo> skipped_latency_info_list_; |
| 292 | 292 |
| 293 // Workaround to prevent creating unnecessarily persistent render passes. |
| 294 // When a copy request is made, it will force a separate render pass for the |
| 295 // web contents, which will persist until the a commit removes it. Use this |
| 296 // flag to force a full commit on the next frame, to remove that render pass. |
| 297 // http://crbug.com/564832 |
| 298 bool force_commit_for_next_frame_; |
| 299 |
| 293 // Holds delegated resources that have been given to a DelegatedFrameProvider, | 300 // Holds delegated resources that have been given to a DelegatedFrameProvider, |
| 294 // and gives back resources when they are no longer in use for return to the | 301 // and gives back resources when they are no longer in use for return to the |
| 295 // renderer. | 302 // renderer. |
| 296 scoped_refptr<cc::DelegatedFrameResourceCollection> resource_collection_; | 303 scoped_refptr<cc::DelegatedFrameResourceCollection> resource_collection_; |
| 297 | 304 |
| 298 // Provides delegated frame updates to the cc::DelegatedRendererLayer. | 305 // Provides delegated frame updates to the cc::DelegatedRendererLayer. |
| 299 scoped_refptr<cc::DelegatedFrameProvider> frame_provider_; | 306 scoped_refptr<cc::DelegatedFrameProvider> frame_provider_; |
| 300 | 307 |
| 301 // State for rendering into a Surface. | 308 // State for rendering into a Surface. |
| 302 scoped_ptr<cc::SurfaceIdAllocator> id_allocator_; | 309 scoped_ptr<cc::SurfaceIdAllocator> id_allocator_; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 // YUV readback pipeline. | 352 // YUV readback pipeline. |
| 346 scoped_ptr<content::ReadbackYUVInterface> | 353 scoped_ptr<content::ReadbackYUVInterface> |
| 347 yuv_readback_pipeline_; | 354 yuv_readback_pipeline_; |
| 348 | 355 |
| 349 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 356 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
| 350 }; | 357 }; |
| 351 | 358 |
| 352 } // namespace content | 359 } // namespace content |
| 353 | 360 |
| 354 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 361 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |
| OLD | NEW |