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

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

Issue 2670213005: Hook ANGLE_request_extension up to the passthrough cmd decoder. (Closed)
Patch Set: Update expectations. Created 3 years, 9 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) 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
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();
Zhenyao Mo 2017/03/09 18:03:18 This is potentially a perf concern for WebGL start
Geoff Lang 2017/03/16 14:59:46 Done, put a comment next to GLContext::Reinitializ
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 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
3472 GLint x, 3484 GLint x,
3473 GLint y, 3485 GLint y,
3474 GLint width, 3486 GLint width,
3475 GLint height) { 3487 GLint height) {
3476 NOTIMPLEMENTED(); 3488 NOTIMPLEMENTED();
3477 return error::kNoError; 3489 return error::kNoError;
3478 } 3490 }
3479 3491
3480 } // namespace gles2 3492 } // namespace gles2
3481 } // namespace gpu 3493 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698