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

Unified Diff: ui/compositor/compositor.cc

Issue 2323123002: Make disable vsync run the renderer independently (Closed)
Patch Set: With additional comment 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_thread_impl.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 540c9d7070be99f76c706f768567468ba43a7a77..51f2e765d87f5697ade607ad06b0990d5e038ee5 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -110,14 +110,8 @@ Compositor::Compositor(ui::ContextFactory* context_factory,
if (command_line->HasSwitch(switches::kDisableGpuVsync)) {
std::string display_vsync_string =
command_line->GetSwitchValueASCII(switches::kDisableGpuVsync);
- if (display_vsync_string == "gpu") {
+ if (display_vsync_string != "beginframe")
danakj 2016/09/12 22:18:00 Don't you mean != "gpu"? If "beginframe" then we
danakj 2016/09/12 22:24:26 Can you put a comment here explaining that this is
settings.renderer_settings.disable_display_vsync = true;
- } else if (display_vsync_string == "beginframe") {
- settings.wait_for_beginframe_interval = false;
- } else {
- settings.renderer_settings.disable_display_vsync = true;
- settings.wait_for_beginframe_interval = false;
- }
}
settings.renderer_settings.partial_swap_enabled =
!command_line->HasSwitch(switches::kUIDisablePartialSwap);
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698