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 "gpu/command_buffer/service/feature_info.h" | 5 #include "gpu/command_buffer/service/feature_info.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 AddExtensionString("GL_CHROMIUM_resize"); | 381 AddExtensionString("GL_CHROMIUM_resize"); |
382 AddExtensionString("GL_CHROMIUM_resource_safe"); | 382 AddExtensionString("GL_CHROMIUM_resource_safe"); |
383 AddExtensionString("GL_CHROMIUM_strict_attribs"); | 383 AddExtensionString("GL_CHROMIUM_strict_attribs"); |
384 AddExtensionString("GL_CHROMIUM_texture_mailbox"); | 384 AddExtensionString("GL_CHROMIUM_texture_mailbox"); |
385 AddExtensionString("GL_CHROMIUM_trace_marker"); | 385 AddExtensionString("GL_CHROMIUM_trace_marker"); |
386 AddExtensionString("GL_EXT_debug_marker"); | 386 AddExtensionString("GL_EXT_debug_marker"); |
387 | 387 |
388 // Pre es3, there are no PBOS and all unpack state is handled in client side. | 388 // Pre es3, there are no PBOS and all unpack state is handled in client side. |
389 // With es3, unpack state is needed in server side. We always mark these | 389 // With es3, unpack state is needed in server side. We always mark these |
390 // enums as valid and pass them to drivers only when a valid PBO is bound. | 390 // enums as valid and pass them to drivers only when a valid PBO is bound. |
| 391 // UNPACK_ROW_LENGTH, UNPACK_SKIP_ROWS, and UNPACK_SKIP_PIXELS are enabled, |
| 392 // but there is no need to add them to pixel_store validtor. |
391 AddExtensionString("GL_EXT_unpack_subimage"); | 393 AddExtensionString("GL_EXT_unpack_subimage"); |
392 validators_.pixel_store.AddValue(GL_UNPACK_ROW_LENGTH); | |
393 validators_.pixel_store.AddValue(GL_UNPACK_SKIP_ROWS); | |
394 validators_.pixel_store.AddValue(GL_UNPACK_SKIP_PIXELS); | |
395 | 394 |
396 if (feature_flags_.enable_subscribe_uniform) { | 395 if (feature_flags_.enable_subscribe_uniform) { |
397 AddExtensionString("GL_CHROMIUM_subscribe_uniform"); | 396 AddExtensionString("GL_CHROMIUM_subscribe_uniform"); |
398 } | 397 } |
399 | 398 |
400 // OES_vertex_array_object is emulated if not present natively, | 399 // OES_vertex_array_object is emulated if not present natively, |
401 // so the extension string is always exposed. | 400 // so the extension string is always exposed. |
402 AddExtensionString("GL_OES_vertex_array_object"); | 401 AddExtensionString("GL_OES_vertex_array_object"); |
403 | 402 |
404 if (!disallowed_features_.gpu_memory_manager) | 403 if (!disallowed_features_.gpu_memory_manager) |
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1433 if (pos == std::string::npos) { | 1432 if (pos == std::string::npos) { |
1434 extensions_ += (extensions_.empty() ? "" : " ") + str; | 1433 extensions_ += (extensions_.empty() ? "" : " ") + str; |
1435 } | 1434 } |
1436 } | 1435 } |
1437 | 1436 |
1438 FeatureInfo::~FeatureInfo() { | 1437 FeatureInfo::~FeatureInfo() { |
1439 } | 1438 } |
1440 | 1439 |
1441 } // namespace gles2 | 1440 } // namespace gles2 |
1442 } // namespace gpu | 1441 } // namespace gpu |
OLD | NEW |