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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation_impl_autogen.h

Issue 1236053003: texture mipmap level is not zero-only in ES 3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code rebase Created 5 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 GLenum attachment, 708 GLenum attachment,
709 GLenum textarget, 709 GLenum textarget,
710 GLuint texture, 710 GLuint texture,
711 GLint level) { 711 GLint level) {
712 GPU_CLIENT_SINGLE_THREAD_CHECK(); 712 GPU_CLIENT_SINGLE_THREAD_CHECK();
713 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glFramebufferTexture2D(" 713 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glFramebufferTexture2D("
714 << GLES2Util::GetStringFrameBufferTarget(target) << ", " 714 << GLES2Util::GetStringFrameBufferTarget(target) << ", "
715 << GLES2Util::GetStringAttachment(attachment) << ", " 715 << GLES2Util::GetStringAttachment(attachment) << ", "
716 << GLES2Util::GetStringTextureTarget(textarget) << ", " 716 << GLES2Util::GetStringTextureTarget(textarget) << ", "
717 << texture << ", " << level << ")"); 717 << texture << ", " << level << ")");
718 if (level != 0) { 718 helper_->FramebufferTexture2D(target, attachment, textarget, texture, level);
719 SetGLError(GL_INVALID_VALUE, "glFramebufferTexture2D",
720 "level GL_INVALID_VALUE");
721 return;
722 }
723 helper_->FramebufferTexture2D(target, attachment, textarget, texture);
724 CheckGLError(); 719 CheckGLError();
725 } 720 }
726 721
727 void GLES2Implementation::FramebufferTextureLayer(GLenum target, 722 void GLES2Implementation::FramebufferTextureLayer(GLenum target,
728 GLenum attachment, 723 GLenum attachment,
729 GLuint texture, 724 GLuint texture,
730 GLint level, 725 GLint level,
731 GLint layer) { 726 GLint layer) {
732 GPU_CLIENT_SINGLE_THREAD_CHECK(); 727 GPU_CLIENT_SINGLE_THREAD_CHECK();
733 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glFramebufferTextureLayer(" 728 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glFramebufferTextureLayer("
(...skipping 2208 matching lines...) Expand 10 before | Expand all | Expand 10 after
2942 GLuint texture, 2937 GLuint texture,
2943 GLint level, 2938 GLint level,
2944 GLsizei samples) { 2939 GLsizei samples) {
2945 GPU_CLIENT_SINGLE_THREAD_CHECK(); 2940 GPU_CLIENT_SINGLE_THREAD_CHECK();
2946 GPU_CLIENT_LOG("[" << GetLogPrefix() 2941 GPU_CLIENT_LOG("[" << GetLogPrefix()
2947 << "] glFramebufferTexture2DMultisampleEXT(" 2942 << "] glFramebufferTexture2DMultisampleEXT("
2948 << GLES2Util::GetStringFrameBufferTarget(target) << ", " 2943 << GLES2Util::GetStringFrameBufferTarget(target) << ", "
2949 << GLES2Util::GetStringAttachment(attachment) << ", " 2944 << GLES2Util::GetStringAttachment(attachment) << ", "
2950 << GLES2Util::GetStringTextureTarget(textarget) << ", " 2945 << GLES2Util::GetStringTextureTarget(textarget) << ", "
2951 << texture << ", " << level << ", " << samples << ")"); 2946 << texture << ", " << level << ", " << samples << ")");
2952 if (level != 0) {
2953 SetGLError(GL_INVALID_VALUE, "glFramebufferTexture2DMultisampleEXT",
2954 "level GL_INVALID_VALUE");
2955 return;
2956 }
2957 if (samples < 0) { 2947 if (samples < 0) {
2958 SetGLError(GL_INVALID_VALUE, "glFramebufferTexture2DMultisampleEXT", 2948 SetGLError(GL_INVALID_VALUE, "glFramebufferTexture2DMultisampleEXT",
2959 "samples < 0"); 2949 "samples < 0");
2960 return; 2950 return;
2961 } 2951 }
2962 helper_->FramebufferTexture2DMultisampleEXT(target, attachment, textarget, 2952 helper_->FramebufferTexture2DMultisampleEXT(target, attachment, textarget,
2963 texture, samples); 2953 texture, level, samples);
2964 CheckGLError(); 2954 CheckGLError();
2965 } 2955 }
2966 2956
2967 void GLES2Implementation::TexStorage2DEXT(GLenum target, 2957 void GLES2Implementation::TexStorage2DEXT(GLenum target,
2968 GLsizei levels, 2958 GLsizei levels,
2969 GLenum internalFormat, 2959 GLenum internalFormat,
2970 GLsizei width, 2960 GLsizei width,
2971 GLsizei height) { 2961 GLsizei height) {
2972 GPU_CLIENT_SINGLE_THREAD_CHECK(); 2962 GPU_CLIENT_SINGLE_THREAD_CHECK();
2973 GPU_CLIENT_LOG( 2963 GPU_CLIENT_LOG(
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
3653 void GLES2Implementation::ApplyScreenSpaceAntialiasingCHROMIUM() { 3643 void GLES2Implementation::ApplyScreenSpaceAntialiasingCHROMIUM() {
3654 GPU_CLIENT_SINGLE_THREAD_CHECK(); 3644 GPU_CLIENT_SINGLE_THREAD_CHECK();
3655 GPU_CLIENT_LOG("[" << GetLogPrefix() 3645 GPU_CLIENT_LOG("[" << GetLogPrefix()
3656 << "] glApplyScreenSpaceAntialiasingCHROMIUM(" 3646 << "] glApplyScreenSpaceAntialiasingCHROMIUM("
3657 << ")"); 3647 << ")");
3658 helper_->ApplyScreenSpaceAntialiasingCHROMIUM(); 3648 helper_->ApplyScreenSpaceAntialiasingCHROMIUM();
3659 CheckGLError(); 3649 CheckGLError();
3660 } 3650 }
3661 3651
3662 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ 3652 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698