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 // This file is here so other GLES2 related files can have a common set of | 5 // This file is here so other GLES2 related files can have a common set of |
6 // includes where appropriate. | 6 // includes where appropriate. |
7 | 7 |
8 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ | 8 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ |
9 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ | 9 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ |
10 | 10 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 int32_t green_size; | 209 int32_t green_size; |
210 int32_t red_size; | 210 int32_t red_size; |
211 int32_t depth_size; | 211 int32_t depth_size; |
212 int32_t stencil_size; | 212 int32_t stencil_size; |
213 int32_t samples; | 213 int32_t samples; |
214 int32_t sample_buffers; | 214 int32_t sample_buffers; |
215 bool buffer_preserved; | 215 bool buffer_preserved; |
216 bool bind_generates_resource; | 216 bool bind_generates_resource; |
217 bool fail_if_major_perf_caveat; | 217 bool fail_if_major_perf_caveat; |
218 bool lose_context_when_out_of_memory; | 218 bool lose_context_when_out_of_memory; |
219 bool es3_context_required; | 219 // 0 if not a WebGL context. |
| 220 unsigned webgl_version; |
220 }; | 221 }; |
221 | 222 |
222 } // namespace gles2 | 223 } // namespace gles2 |
223 } // namespace gpu | 224 } // namespace gpu |
224 | 225 |
225 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ | 226 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ |
226 | 227 |
OLD | NEW |