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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/feature_list.h" | 13 #include "base/feature_list.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ptr_util.h" | 16 #include "base/memory/ptr_util.h" |
17 #include "base/metrics/field_trial.h" | 17 #include "base/metrics/field_trial.h" |
18 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
19 #include "base/sys_info.h" | 19 #include "base/sys_info.h" |
20 #include "build/build_config.h" | 20 #include "build/build_config.h" |
21 #include "cc/base/math_util.h" | 21 #include "cc/base/math_util.h" |
22 #include "cc/base/switches.h" | 22 #include "cc/base/switches.h" |
23 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" | 23 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" |
24 #include "content/browser/gpu/gpu_data_manager_impl.h" | 24 #include "content/browser/gpu/gpu_data_manager_impl.h" |
25 #include "content/public/browser/gpu_utils.h" | 25 #include "content/public/browser/gpu_utils.h" |
26 #include "content/public/common/content_features.h" | 26 #include "content/public/common/content_features.h" |
27 #include "content/public/common/content_switches.h" | 27 #include "content/public/common/content_switches.h" |
28 #include "gpu/config/gpu_feature_type.h" | 28 #include "gpu/config/gpu_feature_type.h" |
29 #include "gpu/ipc/host/gpu_memory_buffer_support.h" | 29 #include "gpu/ipc/common/gpu_memory_buffer_support.h" |
30 #include "media/media_features.h" | 30 #include "media/media_features.h" |
31 #include "ui/gl/gl_switches.h" | 31 #include "ui/gl/gl_switches.h" |
32 | 32 |
33 namespace content { | 33 namespace content { |
34 | 34 |
35 namespace { | 35 namespace { |
36 | 36 |
37 static bool IsGpuRasterizationBlacklisted() { | 37 static bool IsGpuRasterizationBlacklisted() { |
38 GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance(); | 38 GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance(); |
39 return manager->IsFeatureBlacklisted( | 39 return manager->IsFeatureBlacklisted( |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 } | 413 } |
414 } | 414 } |
415 return problem_list; | 415 return problem_list; |
416 } | 416 } |
417 | 417 |
418 std::vector<std::string> GetDriverBugWorkarounds() { | 418 std::vector<std::string> GetDriverBugWorkarounds() { |
419 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); | 419 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); |
420 } | 420 } |
421 | 421 |
422 } // namespace content | 422 } // namespace content |
OLD | NEW |