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

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

Issue 546593002: Make --disable-gpu-compositing disable browser compositor as well. (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 | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | 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 "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 command_line.HasSwitch(switches::kDisableAccelerated2dCanvas) || 54 command_line.HasSwitch(switches::kDisableAccelerated2dCanvas) ||
55 !GpuDataManagerImpl::GetInstance()-> 55 !GpuDataManagerImpl::GetInstance()->
56 GetGPUInfo().SupportsAccelerated2dCanvas(), 56 GetGPUInfo().SupportsAccelerated2dCanvas(),
57 "Accelerated 2D canvas is unavailable: either disabled at the command" 57 "Accelerated 2D canvas is unavailable: either disabled at the command"
58 " line or not supported by the current system.", 58 " line or not supported by the current system.",
59 true 59 true
60 }, 60 },
61 { 61 {
62 kGpuCompositingFeatureName, 62 kGpuCompositingFeatureName,
63 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_GPU_COMPOSITING), 63 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_GPU_COMPOSITING),
64 false, 64 command_line.HasSwitch(switches::kDisableGpuCompositing),
65 "Gpu compositing has been disabled, either via about:flags or" 65 "Gpu compositing has been disabled, either via about:flags or"
66 " command line. The browser will fall back to software compositing" 66 " command line. The browser will fall back to software compositing"
67 " and hardware acceleration will be unavailable.", 67 " and hardware acceleration will be unavailable.",
68 true 68 true
69 }, 69 },
70 { 70 {
71 kWebGLFeatureName, 71 kWebGLFeatureName,
72 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL), 72 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL),
73 command_line.HasSwitch(switches::kDisableExperimentalWebGL), 73 command_line.HasSwitch(switches::kDisableExperimentalWebGL),
74 "WebGL has been disabled, either via about:flags or command line.", 74 "WebGL has been disabled, either via about:flags or command line.",
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 return problem_list; 367 return problem_list;
368 } 368 }
369 369
370 base::Value* GetDriverBugWorkarounds() { 370 base::Value* GetDriverBugWorkarounds() {
371 base::ListValue* workaround_list = new base::ListValue(); 371 base::ListValue* workaround_list = new base::ListValue();
372 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); 372 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list);
373 return workaround_list; 373 return workaround_list;
374 } 374 }
375 375
376 } // namespace content 376 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698