| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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/gles2_cmd_decoder_passthrough.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h" |
| 6 | 6 |
| 7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
| 8 #include "ui/gl/gl_version_info.h" | 8 #include "ui/gl/gl_version_info.h" |
| 9 | 9 |
| 10 namespace gpu { | 10 namespace gpu { |
| (...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1208 | 1208 |
| 1209 error::Error GLES2DecoderPassthroughImpl::DoGetString(GLenum name, | 1209 error::Error GLES2DecoderPassthroughImpl::DoGetString(GLenum name, |
| 1210 const char** result) { | 1210 const char** result) { |
| 1211 switch (name) { | 1211 switch (name) { |
| 1212 case GL_VERSION: | 1212 case GL_VERSION: |
| 1213 *result = GetServiceVersionString(feature_info_.get()); | 1213 *result = GetServiceVersionString(feature_info_.get()); |
| 1214 break; | 1214 break; |
| 1215 case GL_SHADING_LANGUAGE_VERSION: | 1215 case GL_SHADING_LANGUAGE_VERSION: |
| 1216 *result = GetServiceShadingLanguageVersionString(feature_info_.get()); | 1216 *result = GetServiceShadingLanguageVersionString(feature_info_.get()); |
| 1217 break; | 1217 break; |
| 1218 case GL_RENDERER: | |
| 1219 *result = GetServiceRendererString(feature_info_.get()); | |
| 1220 break; | |
| 1221 case GL_VENDOR: | |
| 1222 *result = GetServiceVendorString(feature_info_.get()); | |
| 1223 break; | |
| 1224 case GL_EXTENSIONS: | 1218 case GL_EXTENSIONS: |
| 1225 *result = feature_info_->extensions().c_str(); | 1219 *result = feature_info_->extensions().c_str(); |
| 1226 break; | 1220 break; |
| 1227 default: | 1221 default: |
| 1228 *result = reinterpret_cast<const char*>(glGetString(name)); | 1222 *result = reinterpret_cast<const char*>(glGetString(name)); |
| 1229 break; | 1223 break; |
| 1230 } | 1224 } |
| 1231 | 1225 |
| 1232 return error::kNoError; | 1226 return error::kNoError; |
| 1233 } | 1227 } |
| (...skipping 2238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3472 GLint x, | 3466 GLint x, |
| 3473 GLint y, | 3467 GLint y, |
| 3474 GLint width, | 3468 GLint width, |
| 3475 GLint height) { | 3469 GLint height) { |
| 3476 NOTIMPLEMENTED(); | 3470 NOTIMPLEMENTED(); |
| 3477 return error::kNoError; | 3471 return error::kNoError; |
| 3478 } | 3472 } |
| 3479 | 3473 |
| 3480 } // namespace gles2 | 3474 } // namespace gles2 |
| 3481 } // namespace gpu | 3475 } // namespace gpu |
| OLD | NEW |