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

Side by Side Diff: content/browser/gpu/compositor_util.cc

Issue 549203002: Revert of Turn on pinch virtual-viewport by default on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/browser/gpu/compositor_util.h" 5 #include "content/browser/gpu/compositor_util.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 bool IsPinchVirtualViewportEnabled() { 155 bool IsPinchVirtualViewportEnabled() {
156 const base::CommandLine& command_line = 156 const base::CommandLine& command_line =
157 *base::CommandLine::ForCurrentProcess(); 157 *base::CommandLine::ForCurrentProcess();
158 158
159 // Command line switches take precedence over platform default. 159 // Command line switches take precedence over platform default.
160 if (command_line.HasSwitch(cc::switches::kDisablePinchVirtualViewport)) 160 if (command_line.HasSwitch(cc::switches::kDisablePinchVirtualViewport))
161 return false; 161 return false;
162 if (command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport)) 162 if (command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport))
163 return true; 163 return true;
164 164
165 #if defined(OS_CHROMEOS) || defined(OS_WIN) 165 #if defined(OS_CHROMEOS)
166 return true; 166 return true;
167 #else 167 #else
168 return false; 168 return false;
169 #endif 169 #endif
170 } 170 }
171 171
172 bool IsDelegatedRendererEnabled() { 172 bool IsDelegatedRendererEnabled() {
173 const base::CommandLine& command_line = 173 const base::CommandLine& command_line =
174 *base::CommandLine::ForCurrentProcess(); 174 *base::CommandLine::ForCurrentProcess();
175 bool enabled = false; 175 bool enabled = false;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 return problem_list; 321 return problem_list;
322 } 322 }
323 323
324 base::Value* GetDriverBugWorkarounds() { 324 base::Value* GetDriverBugWorkarounds() {
325 base::ListValue* workaround_list = new base::ListValue(); 325 base::ListValue* workaround_list = new base::ListValue();
326 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); 326 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list);
327 return workaround_list; 327 return workaround_list;
328 } 328 }
329 329
330 } // namespace content 330 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698