| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |