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

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

Issue 2831733003: Fix blits from multisampled renderbuffers to alpha:false WebGL back buffer. (Closed)
Patch Set: Add PLATFORM_EXPORT to fix link failure on Windows. Created 3 years, 8 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 3467 matching lines...) Expand 10 before | Expand all | Expand 10 after
3478 GLint location, 3478 GLint location,
3479 const char* name) { 3479 const char* name) {
3480 glBindUniformLocationCHROMIUM(GetProgramServiceID(program, resources_), 3480 glBindUniformLocationCHROMIUM(GetProgramServiceID(program, resources_),
3481 location, name); 3481 location, name);
3482 return error::kNoError; 3482 return error::kNoError;
3483 } 3483 }
3484 3484
3485 error::Error GLES2DecoderPassthroughImpl::DoBindTexImage2DCHROMIUM( 3485 error::Error GLES2DecoderPassthroughImpl::DoBindTexImage2DCHROMIUM(
3486 GLenum target, 3486 GLenum target,
3487 GLint imageId) { 3487 GLint imageId) {
3488 if (target != GL_TEXTURE_2D) { 3488 return BindTexImage2DCHROMIUMImpl(target, 0, imageId);
3489 InsertError(GL_INVALID_ENUM, "Invalid target"); 3489 }
3490 return error::kNoError;
3491 }
3492 3490
3493 gl::GLImage* image = image_manager_->LookupImage(imageId); 3491 error::Error
3494 if (image == nullptr) { 3492 GLES2DecoderPassthroughImpl::DoBindTexImage2DWithInternalformatCHROMIUM(
3495 InsertError(GL_INVALID_OPERATION, "No image found with the given ID"); 3493 GLenum target,
3496 return error::kNoError; 3494 GLenum internalformat,
3497 } 3495 GLint imageId) {
3498 3496 return BindTexImage2DCHROMIUMImpl(target, internalformat, imageId);
3499 if (!image->BindTexImage(target)) {
3500 image->CopyTexImage(target);
3501 }
3502
3503 return error::kNoError;
3504 } 3497 }
3505 3498
3506 error::Error GLES2DecoderPassthroughImpl::DoReleaseTexImage2DCHROMIUM( 3499 error::Error GLES2DecoderPassthroughImpl::DoReleaseTexImage2DCHROMIUM(
3507 GLenum target, 3500 GLenum target,
3508 GLint imageId) { 3501 GLint imageId) {
3509 if (target != GL_TEXTURE_2D) { 3502 if (target != GL_TEXTURE_2D) {
3510 InsertError(GL_INVALID_ENUM, "Invalid target"); 3503 InsertError(GL_INVALID_ENUM, "Invalid target");
3511 return error::kNoError; 3504 return error::kNoError;
3512 } 3505 }
3513 3506
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
3980 } 3973 }
3981 3974
3982 error::Error GLES2DecoderPassthroughImpl::DoSetEnableDCLayersCHROMIUM( 3975 error::Error GLES2DecoderPassthroughImpl::DoSetEnableDCLayersCHROMIUM(
3983 GLboolean enable) { 3976 GLboolean enable) {
3984 NOTIMPLEMENTED(); 3977 NOTIMPLEMENTED();
3985 return error::kNoError; 3978 return error::kNoError;
3986 } 3979 }
3987 3980
3988 } // namespace gles2 3981 } // namespace gles2
3989 } // namespace gpu 3982 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698