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

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

Issue 2740833005: [cc] Pass on BeginFrameAcks from CompositorEBFS through RWHVAura, DFH. (Closed)
Patch Set: address security comments Created 3 years, 9 months 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_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>
11 11
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "cc/output/begin_frame_args.h"
13 #include "cc/output/copy_output_result.h" 14 #include "cc/output/copy_output_result.h"
14 #include "cc/scheduler/begin_frame_source.h" 15 #include "cc/scheduler/begin_frame_source.h"
15 #include "cc/surfaces/compositor_frame_sink_support_client.h" 16 #include "cc/surfaces/compositor_frame_sink_support_client.h"
16 #include "content/browser/compositor/image_transport_factory.h" 17 #include "content/browser/compositor/image_transport_factory.h"
17 #include "content/browser/compositor/owned_mailbox.h" 18 #include "content/browser/compositor/owned_mailbox.h"
18 #include "content/browser/renderer_host/delegated_frame_evictor.h" 19 #include "content/browser/renderer_host/delegated_frame_evictor.h"
19 #include "content/browser/renderer_host/dip_util.h" 20 #include "content/browser/renderer_host/dip_util.h"
20 #include "content/browser/renderer_host/render_widget_host_impl.h" 21 #include "content/browser/renderer_host/render_widget_host_impl.h"
21 #include "content/browser/renderer_host/render_widget_host_view_base.h" 22 #include "content/browser/renderer_host/render_widget_host_view_base.h"
22 #include "content/public/browser/render_process_host.h" 23 #include "content/public/browser/render_process_host.h"
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 // Callback used to pass the output request to the layer or to a function 328 // Callback used to pass the output request to the layer or to a function
328 // specified by a test. 329 // specified by a test.
329 base::Callback<void(std::unique_ptr<cc::CopyOutputRequest>)> 330 base::Callback<void(std::unique_ptr<cc::CopyOutputRequest>)>
330 request_copy_of_output_callback_for_testing_; 331 request_copy_of_output_callback_for_testing_;
331 332
332 // YUV readback pipeline. 333 // YUV readback pipeline.
333 std::unique_ptr<display_compositor::ReadbackYUVInterface> 334 std::unique_ptr<display_compositor::ReadbackYUVInterface>
334 yuv_readback_pipeline_; 335 yuv_readback_pipeline_;
335 336
336 std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_; 337 std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_;
337
338 bool needs_begin_frame_ = false; 338 bool needs_begin_frame_ = false;
339 uint32_t latest_confirmed_begin_frame_source_id_ = 0;
340 uint64_t latest_confirmed_begin_frame_sequence_number_ =
341 cc::BeginFrameArgs::kInvalidFrameNumber;
339 342
340 bool has_frame_ = false; 343 bool has_frame_ = false;
341 344
342 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 345 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
343 }; 346 };
344 347
345 } // namespace content 348 } // namespace content
346 349
347 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 350 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698