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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 164373012: Remove options to disable deadline scheduling (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index ff3ed042e3009a2b0a147a4478d37e594b6cb72f..5782e060f9b235a195b6753b331715109a9aa396 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -3225,17 +3225,8 @@ void RenderWidgetHostViewAura::OnCompositingLockStateChanged(
void RenderWidgetHostViewAura::OnUpdateVSyncParameters(
base::TimeTicks timebase,
base::TimeDelta interval) {
- if (IsShowing()) {
- if (IsDeadlineSchedulingEnabled()) {
- // The deadline scheduler has logic to stagger the draws of the
- // Renderer and Browser built-in, so send it an accurate timebase.
- host_->UpdateVSyncParameters(timebase, interval);
- } else if (!last_draw_ended_.is_null()) {
- // For the non-deadline scheduler, we send the Renderer an offset
- // vsync timebase to avoid its draws racing the Browser's draws.
- host_->UpdateVSyncParameters(last_draw_ended_, interval);
- }
- }
+ if (IsShowing())
+ host_->UpdateVSyncParameters(timebase, interval);
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698