| 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 2578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2589 error::Error GLES2DecoderPassthroughImpl::DoResizeCHROMIUM(GLuint width, | 2589 error::Error GLES2DecoderPassthroughImpl::DoResizeCHROMIUM(GLuint width, |
| 2590 GLuint height, | 2590 GLuint height, |
| 2591 GLfloat scale_factor, | 2591 GLfloat scale_factor, |
| 2592 GLboolean alpha) { | 2592 GLboolean alpha) { |
| 2593 NOTIMPLEMENTED(); | 2593 NOTIMPLEMENTED(); |
| 2594 return error::kNoError; | 2594 return error::kNoError; |
| 2595 } | 2595 } |
| 2596 | 2596 |
| 2597 error::Error GLES2DecoderPassthroughImpl::DoGetRequestableExtensionsCHROMIUM( | 2597 error::Error GLES2DecoderPassthroughImpl::DoGetRequestableExtensionsCHROMIUM( |
| 2598 const char** extensions) { | 2598 const char** extensions) { |
| 2599 *extensions = ""; | 2599 *extensions = reinterpret_cast<const char*>( |
| 2600 NOTIMPLEMENTED(); | 2600 glGetString(GL_REQUESTABLE_EXTENSIONS_ANGLE)); |
| 2601 return error::kNoError; | 2601 return error::kNoError; |
| 2602 } | 2602 } |
| 2603 | 2603 |
| 2604 error::Error GLES2DecoderPassthroughImpl::DoRequestExtensionCHROMIUM( | 2604 error::Error GLES2DecoderPassthroughImpl::DoRequestExtensionCHROMIUM( |
| 2605 const char* extension) { | 2605 const char* extension) { |
| 2606 NOTIMPLEMENTED(); | 2606 glRequestExtensionANGLE(extension); |
| 2607 |
| 2608 // Make sure there are no pending GL errors before re-initializing feature |
| 2609 // info |
| 2610 FlushErrors(); |
| 2611 |
| 2612 // Make sure newly enabled extensions are exposed and usable. |
| 2613 context_->ReinitializeDynamicBindings(); |
| 2614 if (!feature_info_->Initialize(feature_info_->context_type(), |
| 2615 feature_info_->disallowed_features())) { |
| 2616 return error::kLostContext; |
| 2617 } |
| 2618 |
| 2607 return error::kNoError; | 2619 return error::kNoError; |
| 2608 } | 2620 } |
| 2609 | 2621 |
| 2610 error::Error GLES2DecoderPassthroughImpl::DoGetProgramInfoCHROMIUM( | 2622 error::Error GLES2DecoderPassthroughImpl::DoGetProgramInfoCHROMIUM( |
| 2611 GLuint program, | 2623 GLuint program, |
| 2612 std::vector<uint8_t>* data) { | 2624 std::vector<uint8_t>* data) { |
| 2613 GLuint service_program = 0; | 2625 GLuint service_program = 0; |
| 2614 if (!resources_->program_id_map.GetServiceID(program, &service_program)) { | 2626 if (!resources_->program_id_map.GetServiceID(program, &service_program)) { |
| 2615 return error::kNoError; | 2627 return error::kNoError; |
| 2616 } | 2628 } |
| (...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3492 GLint x, | 3504 GLint x, |
| 3493 GLint y, | 3505 GLint y, |
| 3494 GLint width, | 3506 GLint width, |
| 3495 GLint height) { | 3507 GLint height) { |
| 3496 NOTIMPLEMENTED(); | 3508 NOTIMPLEMENTED(); |
| 3497 return error::kNoError; | 3509 return error::kNoError; |
| 3498 } | 3510 } |
| 3499 | 3511 |
| 3500 } // namespace gles2 | 3512 } // namespace gles2 |
| 3501 } // namespace gpu | 3513 } // namespace gpu |
| OLD | NEW |