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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 612093008: gpu: Rename Capabilities::map_image to Capabilities::image. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: should only be a rename Created 6 years, 2 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
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | gpu/command_buffer/common/capabilities.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // A class to emulate GLES2 over command buffers. 5 // A class to emulate GLES2 over command buffers.
6 6
7 #include "gpu/command_buffer/client/gles2_implementation.h" 7 #include "gpu/command_buffer/client/gles2_implementation.h"
8 8
9 #include <GLES2/gl2ext.h> 9 #include <GLES2/gl2ext.h>
10 #include <GLES2/gl2extchromium.h> 10 #include <GLES2/gl2extchromium.h>
(...skipping 2192 matching lines...) Expand 10 before | Expand all | Expand 10 after
2203 helper_->GetString(name, kResultBucketId); 2203 helper_->GetString(name, kResultBucketId);
2204 std::string str; 2204 std::string str;
2205 if (GetBucketAsString(kResultBucketId, &str)) { 2205 if (GetBucketAsString(kResultBucketId, &str)) {
2206 // Adds extensions implemented on client side only. 2206 // Adds extensions implemented on client side only.
2207 switch (name) { 2207 switch (name) {
2208 case GL_EXTENSIONS: 2208 case GL_EXTENSIONS:
2209 str += std::string(str.empty() ? "" : " ") + 2209 str += std::string(str.empty() ? "" : " ") +
2210 "GL_CHROMIUM_flipy " 2210 "GL_CHROMIUM_flipy "
2211 "GL_EXT_unpack_subimage " 2211 "GL_EXT_unpack_subimage "
2212 "GL_CHROMIUM_map_sub"; 2212 "GL_CHROMIUM_map_sub";
2213 if (capabilities_.map_image) { 2213 if (capabilities_.image) {
2214 // The first space character is intentional. 2214 // The first space character is intentional.
2215 str += " GL_CHROMIUM_map_image"; 2215 str += " GL_CHROMIUM_image";
2216 } 2216 }
2217 if (capabilities_.future_sync_points) 2217 if (capabilities_.future_sync_points)
2218 str += " GL_CHROMIUM_future_sync_point"; 2218 str += " GL_CHROMIUM_future_sync_point";
2219 break; 2219 break;
2220 default: 2220 default:
2221 break; 2221 break;
2222 } 2222 }
2223 2223
2224 // Because of WebGL the extensions can change. We have to cache each unique 2224 // Because of WebGL the extensions can change. We have to cache each unique
2225 // result since we don't know when the client will stop referring to a 2225 // result since we don't know when the client will stop referring to a
(...skipping 1964 matching lines...) Expand 10 before | Expand all | Expand 10 after
4190 return true; 4190 return true;
4191 } 4191 }
4192 4192
4193 // Include the auto-generated part of this file. We split this because it means 4193 // Include the auto-generated part of this file. We split this because it means
4194 // we can easily edit the non-auto generated parts right here in this file 4194 // we can easily edit the non-auto generated parts right here in this file
4195 // instead of having to edit some template or the code generator. 4195 // instead of having to edit some template or the code generator.
4196 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" 4196 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h"
4197 4197
4198 } // namespace gles2 4198 } // namespace gles2
4199 } // namespace gpu 4199 } // namespace gpu
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | gpu/command_buffer/common/capabilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698