Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: gpu/command_buffer/service/feature_info.cc

Issue 2945673002: Allow creating GLImage-backed textures with glTexStorage2D. (Closed)
Patch Set: add test Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 AddExtensionString("GL_CHROMIUM_get_error_query"); 429 AddExtensionString("GL_CHROMIUM_get_error_query");
430 AddExtensionString("GL_CHROMIUM_lose_context"); 430 AddExtensionString("GL_CHROMIUM_lose_context");
431 AddExtensionString("GL_CHROMIUM_pixel_transfer_buffer_object"); 431 AddExtensionString("GL_CHROMIUM_pixel_transfer_buffer_object");
432 AddExtensionString("GL_CHROMIUM_rate_limit_offscreen_context"); 432 AddExtensionString("GL_CHROMIUM_rate_limit_offscreen_context");
433 AddExtensionString("GL_CHROMIUM_resize"); 433 AddExtensionString("GL_CHROMIUM_resize");
434 AddExtensionString("GL_CHROMIUM_resource_safe"); 434 AddExtensionString("GL_CHROMIUM_resource_safe");
435 AddExtensionString("GL_CHROMIUM_strict_attribs"); 435 AddExtensionString("GL_CHROMIUM_strict_attribs");
436 AddExtensionString("GL_CHROMIUM_texture_mailbox"); 436 AddExtensionString("GL_CHROMIUM_texture_mailbox");
437 AddExtensionString("GL_CHROMIUM_trace_marker"); 437 AddExtensionString("GL_CHROMIUM_trace_marker");
438 AddExtensionString("GL_EXT_debug_marker"); 438 AddExtensionString("GL_EXT_debug_marker");
439 AddExtensionString("GL_CHROMIUM_texture_buffer");
439 440
440 // Pre es3, there are no PBOS and all unpack state is handled in client side. 441 // Pre es3, there are no PBOS and all unpack state is handled in client side.
441 // With es3, unpack state is needed in server side. We always mark these 442 // With es3, unpack state is needed in server side. We always mark these
442 // enums as valid and pass them to drivers only when a valid PBO is bound. 443 // enums as valid and pass them to drivers only when a valid PBO is bound.
443 // UNPACK_ROW_LENGTH, UNPACK_SKIP_ROWS, and UNPACK_SKIP_PIXELS are enabled, 444 // UNPACK_ROW_LENGTH, UNPACK_SKIP_ROWS, and UNPACK_SKIP_PIXELS are enabled,
444 // but there is no need to add them to pixel_store validtor. 445 // but there is no need to add them to pixel_store validtor.
445 AddExtensionString("GL_EXT_unpack_subimage"); 446 AddExtensionString("GL_EXT_unpack_subimage");
446 447
447 // OES_vertex_array_object is emulated if not present natively, 448 // OES_vertex_array_object is emulated if not present natively,
448 // so the extension string is always exposed. 449 // so the extension string is always exposed.
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1740 if (pos == std::string::npos) { 1741 if (pos == std::string::npos) {
1741 extensions_ += (extensions_.empty() ? "" : " ") + str; 1742 extensions_ += (extensions_.empty() ? "" : " ") + str;
1742 } 1743 }
1743 } 1744 }
1744 1745
1745 FeatureInfo::~FeatureInfo() { 1746 FeatureInfo::~FeatureInfo() {
1746 } 1747 }
1747 1748
1748 } // namespace gles2 1749 } // namespace gles2
1749 } // namespace gpu 1750 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698