| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/common/gpu_feature_flags.h" | 5 #include "content/common/gpu_feature_flags.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 const char GpuFeatureFlags::kGpuFeatureNameAccelerated2dCanvas[] = | 9 const char GpuFeatureFlags::kGpuFeatureNameAccelerated2dCanvas[] = |
| 10 "accelerated_2d_canvas"; | 10 "accelerated_2d_canvas"; |
| 11 const char GpuFeatureFlags::kGpuFeatureNameAcceleratedCompositing[] = | 11 const char GpuFeatureFlags::kGpuFeatureNameAcceleratedCompositing[] = |
| 12 "accelerated_compositing"; | 12 "accelerated_compositing"; |
| 13 const char GpuFeatureFlags::kGpuFeatureNameWebgl[] = "webgl"; | 13 const char GpuFeatureFlags::kGpuFeatureNameWebgl[] = "webgl"; |
| 14 const char GpuFeatureFlags::kGpuFeatureNameMultisampling[] = "multisampling"; | 14 const char GpuFeatureFlags::kGpuFeatureNameMultisampling[] = "multisampling"; |
| 15 const char GpuFeatureFlags::kGpuFeatureNameAll[] = "all"; | 15 const char GpuFeatureFlags::kGpuFeatureNameAll[] = "all"; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 39 return kGpuFeatureAcceleratedCompositing; | 39 return kGpuFeatureAcceleratedCompositing; |
| 40 else if (feature_string == kGpuFeatureNameWebgl) | 40 else if (feature_string == kGpuFeatureNameWebgl) |
| 41 return kGpuFeatureWebgl; | 41 return kGpuFeatureWebgl; |
| 42 else if (feature_string == kGpuFeatureNameMultisampling) | 42 else if (feature_string == kGpuFeatureNameMultisampling) |
| 43 return kGpuFeatureMultisampling; | 43 return kGpuFeatureMultisampling; |
| 44 else if (feature_string == kGpuFeatureNameAll) | 44 else if (feature_string == kGpuFeatureNameAll) |
| 45 return kGpuFeatureAll; | 45 return kGpuFeatureAll; |
| 46 return kGpuFeatureUnknown; | 46 return kGpuFeatureUnknown; |
| 47 } | 47 } |
| 48 | 48 |
| OLD | NEW |