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

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

Issue 11412232: gpu: Add async upload functions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@ASYNC_uploads
Patch Set: Just a name change Created 8 years 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 <set> 7 #include <set>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 switches::kDisableGpuDriverBugWorkarounds); 228 switches::kDisableGpuDriverBugWorkarounds);
229 229
230 feature_flags_.enable_shader_name_hashing = 230 feature_flags_.enable_shader_name_hashing =
231 CommandLine::ForCurrentProcess()->HasSwitch( 231 CommandLine::ForCurrentProcess()->HasSwitch(
232 switches::kEnableShaderNameHashing); 232 switches::kEnableShaderNameHashing);
233 233
234 234
235 bool npot_ok = false; 235 bool npot_ok = false;
236 236
237 AddExtensionString("GL_ANGLE_translated_shader_source"); 237 AddExtensionString("GL_ANGLE_translated_shader_source");
238 AddExtensionString("GL_CHROMIUM_async_tasks");
greggman 2012/11/29 02:18:18 Seems like this should maybe be more specific. Lik
epennerAtGoogle 2012/11/29 03:47:23 It was like that before, but I plan to add Async r
reveman 2012/11/29 04:13:32 "task" is a bit ambiguous. if use one extension ma
epennerAtGoogle 2012/11/29 19:28:43 I like async-pixel-transfer the most, so I'll use
238 AddExtensionString("GL_CHROMIUM_bind_uniform_location"); 239 AddExtensionString("GL_CHROMIUM_bind_uniform_location");
239 AddExtensionString("GL_CHROMIUM_command_buffer_query"); 240 AddExtensionString("GL_CHROMIUM_command_buffer_query");
240 AddExtensionString("GL_CHROMIUM_command_buffer_latency_query"); 241 AddExtensionString("GL_CHROMIUM_command_buffer_latency_query");
241 AddExtensionString("GL_CHROMIUM_copy_texture"); 242 AddExtensionString("GL_CHROMIUM_copy_texture");
242 AddExtensionString("GL_CHROMIUM_discard_framebuffer"); 243 AddExtensionString("GL_CHROMIUM_discard_framebuffer");
243 AddExtensionString("GL_CHROMIUM_get_error_query"); 244 AddExtensionString("GL_CHROMIUM_get_error_query");
244 AddExtensionString("GL_CHROMIUM_pixel_transfer_buffer_object"); 245 AddExtensionString("GL_CHROMIUM_pixel_transfer_buffer_object");
245 AddExtensionString("GL_CHROMIUM_rate_limit_offscreen_context"); 246 AddExtensionString("GL_CHROMIUM_rate_limit_offscreen_context");
246 AddExtensionString("GL_CHROMIUM_resize"); 247 AddExtensionString("GL_CHROMIUM_resize");
247 AddExtensionString("GL_CHROMIUM_resource_safe"); 248 AddExtensionString("GL_CHROMIUM_resource_safe");
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 if (extensions_.find(str) == std::string::npos) { 701 if (extensions_.find(str) == std::string::npos) {
701 extensions_ += (extensions_.empty() ? "" : " ") + str; 702 extensions_ += (extensions_.empty() ? "" : " ") + str;
702 } 703 }
703 } 704 }
704 705
705 FeatureInfo::~FeatureInfo() { 706 FeatureInfo::~FeatureInfo() {
706 } 707 }
707 708
708 } // namespace gles2 709 } // namespace gles2
709 } // namespace gpu 710 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698