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

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

Issue 2297923002: Remove the --disable-begin-frame-scheduling flag (Closed)
Patch Set: Created 4 years, 3 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>
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 248
249 // Called to consult the current |frame_subscriber_|, to determine and maybe 249 // Called to consult the current |frame_subscriber_|, to determine and maybe
250 // initiate a copy-into-video-frame request. 250 // initiate a copy-into-video-frame request.
251 void AttemptFrameSubscriberCapture(const gfx::Rect& damage_rect); 251 void AttemptFrameSubscriberCapture(const gfx::Rect& damage_rect);
252 252
253 DelegatedFrameHostClient* const client_; 253 DelegatedFrameHostClient* const client_;
254 ui::Compositor* compositor_; 254 ui::Compositor* compositor_;
255 255
256 // The vsync manager we are observing for changes, if any. 256 // The vsync manager we are observing for changes, if any.
257 scoped_refptr<ui::CompositorVSyncManager> vsync_manager_; 257 scoped_refptr<ui::CompositorVSyncManager> vsync_manager_;
258 bool using_begin_frame_scheduling_;
259 258
260 // The current VSync timebase and interval. These are zero until the first 259 // The current VSync timebase and interval. These are zero until the first
261 // call to SetVSyncParameters(). 260 // call to SetVSyncParameters().
262 base::TimeTicks vsync_timebase_; 261 base::TimeTicks vsync_timebase_;
263 base::TimeDelta vsync_interval_; 262 base::TimeDelta vsync_interval_;
264 263
265 // Overridable tick clock used for testing functions using current time. 264 // Overridable tick clock used for testing functions using current time.
266 std::unique_ptr<base::TickClock> tick_clock_; 265 std::unique_ptr<base::TickClock> tick_clock_;
267 266
268 // With delegated renderer, this is the last output surface, used to 267 // With delegated renderer, this is the last output surface, used to
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 // YUV readback pipeline. 331 // YUV readback pipeline.
333 std::unique_ptr<display_compositor::ReadbackYUVInterface> 332 std::unique_ptr<display_compositor::ReadbackYUVInterface>
334 yuv_readback_pipeline_; 333 yuv_readback_pipeline_;
335 334
336 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 335 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
337 }; 336 };
338 337
339 } // namespace content 338 } // namespace content
340 339
341 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 340 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | content/browser/renderer_host/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698