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

Unified Diff: ui/compositor/compositor.cc

Issue 2854953006: Move disable_display_vsync out of RendererSettings (Closed)
Patch Set: Correct typo Created 3 years, 7 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/test/layouttest_support.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 862bc1b92a5dac1b389f279c3dbf0317ad1ca82a..45357f61e68f9f3403689d0def509908b934fde6 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -87,16 +87,6 @@ Compositor::Compositor(const cc::FrameSinkId& frame_sink_id,
context_factory_->DoesCreateTestContexts() ? kTestRefreshRate
: kDefaultRefreshRate;
settings.main_frame_before_activation_enabled = false;
- if (command_line->HasSwitch(switches::kDisableGpuVsync)) {
- std::string display_vsync_string =
- command_line->GetSwitchValueASCII(switches::kDisableGpuVsync);
- // See comments in gl_switches about this flag. The browser compositor
- // is only unthrottled when "gpu" or no switch value is passed, as it
- // is driven directly by the display compositor.
- if (display_vsync_string != "beginframe") {
- settings.renderer_settings.disable_display_vsync = true;
- }
- }
settings.renderer_settings.partial_swap_enabled =
!command_line->HasSwitch(switches::kUIDisablePartialSwap);
#if defined(OS_WIN)
« no previous file with comments | « content/test/layouttest_support.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698