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

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

Issue 392333002: Revert 283229 "content: Enable impl-side painting on Windows." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 223 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
224 224
225 if (command_line.HasSwitch(switches::kDisableImplSidePainting)) 225 if (command_line.HasSwitch(switches::kDisableImplSidePainting))
226 return false; 226 return false;
227 else if (command_line.HasSwitch(switches::kEnableImplSidePainting)) 227 else if (command_line.HasSwitch(switches::kEnableImplSidePainting))
228 return true; 228 return true;
229 else if (command_line.HasSwitch( 229 else if (command_line.HasSwitch(
230 switches::kEnableBleedingEdgeRenderingFastPaths)) 230 switches::kEnableBleedingEdgeRenderingFastPaths))
231 return true; 231 return true;
232 232
233 #if defined(OS_MACOSX) 233 #if defined(OS_MACOSX) || defined(OS_WIN)
234 return false; 234 return false;
235 #else 235 #else
236 return IsThreadedCompositingEnabled(); 236 return IsThreadedCompositingEnabled();
237 #endif 237 #endif
238 } 238 }
239 239
240 bool IsGpuRasterizationEnabled() { 240 bool IsGpuRasterizationEnabled() {
241 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 241 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
242 242
243 if (!IsImplSidePaintingEnabled()) 243 if (!IsImplSidePaintingEnabled())
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 return problem_list; 360 return problem_list;
361 } 361 }
362 362
363 base::Value* GetDriverBugWorkarounds() { 363 base::Value* GetDriverBugWorkarounds() {
364 base::ListValue* workaround_list = new base::ListValue(); 364 base::ListValue* workaround_list = new base::ListValue();
365 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); 365 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list);
366 return workaround_list; 366 return workaround_list;
367 } 367 }
368 368
369 } // namespace content 369 } // 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