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

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: Fix extension check. Created 3 years, 10 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 8
9 namespace gpu { 9 namespace gpu {
10 namespace gles2 { 10 namespace gles2 {
(...skipping 2493 matching lines...) Expand 10 before | Expand all | Expand 10 after
2504 error::Error GLES2DecoderPassthroughImpl::DoResizeCHROMIUM(GLuint width, 2504 error::Error GLES2DecoderPassthroughImpl::DoResizeCHROMIUM(GLuint width,
2505 GLuint height, 2505 GLuint height,
2506 GLfloat scale_factor, 2506 GLfloat scale_factor,
2507 GLboolean alpha) { 2507 GLboolean alpha) {
2508 NOTIMPLEMENTED(); 2508 NOTIMPLEMENTED();
2509 return error::kNoError; 2509 return error::kNoError;
2510 } 2510 }
2511 2511
2512 error::Error GLES2DecoderPassthroughImpl::DoGetRequestableExtensionsCHROMIUM( 2512 error::Error GLES2DecoderPassthroughImpl::DoGetRequestableExtensionsCHROMIUM(
2513 const char** extensions) { 2513 const char** extensions) {
2514 *extensions = ""; 2514 *extensions = reinterpret_cast<const char*>(
2515 NOTIMPLEMENTED(); 2515 glGetString(GL_REQUESTABLE_EXTENSIONS_ANGLE));
2516 return error::kNoError; 2516 return error::kNoError;
2517 } 2517 }
2518 2518
2519 error::Error GLES2DecoderPassthroughImpl::DoRequestExtensionCHROMIUM( 2519 error::Error GLES2DecoderPassthroughImpl::DoRequestExtensionCHROMIUM(
2520 const char* extension) { 2520 const char* extension) {
2521 NOTIMPLEMENTED(); 2521 glRequestExtensionANGLE(extension);
2522
2523 // Make sure there are no pending GL errors before re-initializing feature
2524 // info
2525 FlushErrors();
2526
2527 // Make sure newly enabled extensions are exposed and usable.
2528 context_->ReinitializeDynamicBindings();
2529 if (!feature_info_->Initialize(feature_info_->context_type(),
2530 feature_info_->disallowed_features())) {
2531 return error::kLostContext;
2532 }
2533
2522 return error::kNoError; 2534 return error::kNoError;
2523 } 2535 }
2524 2536
2525 error::Error GLES2DecoderPassthroughImpl::DoGetProgramInfoCHROMIUM( 2537 error::Error GLES2DecoderPassthroughImpl::DoGetProgramInfoCHROMIUM(
2526 GLuint program, 2538 GLuint program,
2527 std::vector<uint8_t>* data) { 2539 std::vector<uint8_t>* data) {
2528 GLuint service_program = 0; 2540 GLuint service_program = 0;
2529 if (!resources_->program_id_map.GetServiceID(program, &service_program)) { 2541 if (!resources_->program_id_map.GetServiceID(program, &service_program)) {
2530 return error::kNoError; 2542 return error::kNoError;
2531 } 2543 }
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
3319 GLuint texture, 3331 GLuint texture,
3320 GLboolean promotion_hint, 3332 GLboolean promotion_hint,
3321 GLint display_x, 3333 GLint display_x,
3322 GLint display_y) { 3334 GLint display_y) {
3323 NOTIMPLEMENTED(); 3335 NOTIMPLEMENTED();
3324 return error::kNoError; 3336 return error::kNoError;
3325 } 3337 }
3326 3338
3327 } // namespace gles2 3339 } // namespace gles2
3328 } // namespace gpu 3340 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698