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 "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 namespace content { | 23 namespace content { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 static bool IsGpuRasterizationBlacklisted() { | 27 static bool IsGpuRasterizationBlacklisted() { |
28 GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance(); | 28 GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance(); |
29 return manager->IsFeatureBlacklisted( | 29 return manager->IsFeatureBlacklisted( |
30 gpu::GPU_FEATURE_TYPE_GPU_RASTERIZATION); | 30 gpu::GPU_FEATURE_TYPE_GPU_RASTERIZATION); |
31 } | 31 } |
32 | 32 |
33 const char* kGpuCompositingFeatureName = "gpu_compositing"; | 33 const char kGpuCompositingFeatureName[] = "gpu_compositing"; |
34 const char* kWebGLFeatureName = "webgl"; | 34 const char kWebGLFeatureName[] = "webgl"; |
35 const char* kRasterizationFeatureName = "rasterization"; | 35 const char kRasterizationFeatureName[] = "rasterization"; |
36 const char* kMultipleRasterThreadsFeatureName = "multiple_raster_threads"; | 36 const char kMultipleRasterThreadsFeatureName[] = "multiple_raster_threads"; |
37 const char* kNativeGpuMemoryBuffersFeatureName = "native_gpu_memory_buffers"; | 37 const char kNativeGpuMemoryBuffersFeatureName[] = "native_gpu_memory_buffers"; |
38 | 38 |
39 const int kMinRasterThreads = 1; | 39 const int kMinRasterThreads = 1; |
40 const int kMaxRasterThreads = 4; | 40 const int kMaxRasterThreads = 4; |
41 | 41 |
42 const int kMinMSAASampleCount = 0; | 42 const int kMinMSAASampleCount = 0; |
43 | 43 |
44 struct GpuFeatureInfo { | 44 struct GpuFeatureInfo { |
45 std::string name; | 45 std::string name; |
46 bool blocked; | 46 bool blocked; |
47 bool disabled; | 47 bool disabled; |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 } | 394 } |
395 } | 395 } |
396 return problem_list; | 396 return problem_list; |
397 } | 397 } |
398 | 398 |
399 std::vector<std::string> GetDriverBugWorkarounds() { | 399 std::vector<std::string> GetDriverBugWorkarounds() { |
400 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); | 400 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); |
401 } | 401 } |
402 | 402 |
403 } // namespace content | 403 } // namespace content |
OLD | NEW |