| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/gpu_data_manager_impl_private.h" | 5 #include "content/browser/gpu/gpu_data_manager_impl_private.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 UpdateGpuInfoHelper(); | 970 UpdateGpuInfoHelper(); |
| 971 return true; | 971 return true; |
| 972 } | 972 } |
| 973 | 973 |
| 974 bool GpuDataManagerImplPrivate::CanUseGpuBrowserCompositor() const { | 974 bool GpuDataManagerImplPrivate::CanUseGpuBrowserCompositor() const { |
| 975 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 975 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 976 switches::kDisableGpuCompositing)) | 976 switches::kDisableGpuCompositing)) |
| 977 return false; | 977 return false; |
| 978 if (ShouldUseSwiftShader()) | 978 if (ShouldUseSwiftShader()) |
| 979 return false; | 979 return false; |
| 980 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_GPU_COMPOSITING)) | 980 // if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_GPU_COMPOSITING)) |
| 981 return false; | 981 // return false; |
| 982 return true; | 982 return true; |
| 983 } | 983 } |
| 984 | 984 |
| 985 | 985 |
| 986 bool GpuDataManagerImplPrivate::ShouldDisableAcceleratedVideoDecode( | 986 bool GpuDataManagerImplPrivate::ShouldDisableAcceleratedVideoDecode( |
| 987 const base::CommandLine* command_line) const { | 987 const base::CommandLine* command_line) const { |
| 988 // Make sure that we initialize the experiment first to make sure that | 988 // Make sure that we initialize the experiment first to make sure that |
| 989 // statistics are bucket correctly in all cases. | 989 // statistics are bucket correctly in all cases. |
| 990 // This experiment is temporary and will be removed once enough data | 990 // This experiment is temporary and will be removed once enough data |
| 991 // to resolve crbug/442039 has been collected. | 991 // to resolve crbug/442039 has been collected. |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1284 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; | 1284 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; |
| 1285 #if defined(OS_WIN) | 1285 #if defined(OS_WIN) |
| 1286 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; | 1286 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; |
| 1287 #endif | 1287 #endif |
| 1288 complete_gpu_info_already_requested_ = true; | 1288 complete_gpu_info_already_requested_ = true; |
| 1289 // Some observers might be waiting. | 1289 // Some observers might be waiting. |
| 1290 NotifyGpuInfoUpdate(); | 1290 NotifyGpuInfoUpdate(); |
| 1291 } | 1291 } |
| 1292 | 1292 |
| 1293 } // namespace content | 1293 } // namespace content |
| OLD | NEW |