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 #ifndef GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 bool native_vertex_array_object; | 52 bool native_vertex_array_object; |
53 bool enable_shader_name_hashing; | 53 bool enable_shader_name_hashing; |
54 bool enable_samplers; | 54 bool enable_samplers; |
55 bool ext_draw_buffers; | 55 bool ext_draw_buffers; |
56 bool ext_frag_depth; | 56 bool ext_frag_depth; |
57 bool use_async_readpixels; | 57 bool use_async_readpixels; |
58 bool map_buffer_range; | 58 bool map_buffer_range; |
59 bool ext_discard_framebuffer; | 59 bool ext_discard_framebuffer; |
60 bool angle_depth_texture; | 60 bool angle_depth_texture; |
61 bool is_angle; | 61 bool is_angle; |
| 62 bool is_swiftshader; |
62 }; | 63 }; |
63 | 64 |
64 struct Workarounds { | 65 struct Workarounds { |
65 Workarounds(); | 66 Workarounds(); |
66 | 67 |
67 #define GPU_OP(type, name) bool name; | 68 #define GPU_OP(type, name) bool name; |
68 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) | 69 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) |
69 #undef GPU_OP | 70 #undef GPU_OP |
70 | 71 |
71 // Note: 0 here means use driver limit. | 72 // Note: 0 here means use driver limit. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // Flags for Workarounds. | 131 // Flags for Workarounds. |
131 Workarounds workarounds_; | 132 Workarounds workarounds_; |
132 | 133 |
133 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 134 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
134 }; | 135 }; |
135 | 136 |
136 } // namespace gles2 | 137 } // namespace gles2 |
137 } // namespace gpu | 138 } // namespace gpu |
138 | 139 |
139 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 140 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
OLD | NEW |