Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: content/browser/compositor/delegated_frame_host.h

Issue 1493013002: cc: Force commit on the frame after a copy request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comments Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/compositor/delegated_frame_host.cc » ('j') | content/browser/compositor/delegated_frame_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698