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

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

Issue 488133004: cc: Enable renderer compositor impl-side painting on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: implside: tot2 Created 6 years, 4 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 *base::CommandLine::ForCurrentProcess(); 190 *base::CommandLine::ForCurrentProcess();
191 191
192 if (command_line.HasSwitch(switches::kDisableImplSidePainting)) 192 if (command_line.HasSwitch(switches::kDisableImplSidePainting))
193 return false; 193 return false;
194 else if (command_line.HasSwitch(switches::kEnableImplSidePainting)) 194 else if (command_line.HasSwitch(switches::kEnableImplSidePainting))
195 return true; 195 return true;
196 else if (command_line.HasSwitch( 196 else if (command_line.HasSwitch(
197 switches::kEnableBleedingEdgeRenderingFastPaths)) 197 switches::kEnableBleedingEdgeRenderingFastPaths))
198 return true; 198 return true;
199 199
200 #if defined(OS_MACOSX) || defined(OS_WIN) 200 #if defined(OS_MACOSX)
201 return false; 201 return false;
202 #else 202 #else
203 return true; 203 return true;
204 #endif 204 #endif
205 } 205 }
206 206
207 bool IsGpuRasterizationEnabled() { 207 bool IsGpuRasterizationEnabled() {
208 const base::CommandLine& command_line = 208 const base::CommandLine& command_line =
209 *base::CommandLine::ForCurrentProcess(); 209 *base::CommandLine::ForCurrentProcess();
210 210
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 return problem_list; 325 return problem_list;
326 } 326 }
327 327
328 base::Value* GetDriverBugWorkarounds() { 328 base::Value* GetDriverBugWorkarounds() {
329 base::ListValue* workaround_list = new base::ListValue(); 329 base::ListValue* workaround_list = new base::ListValue();
330 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); 330 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list);
331 return workaround_list; 331 return workaround_list;
332 } 332 }
333 333
334 } // namespace content 334 } // 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