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

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: addressed zmo@'s feedback Created 5 years, 5 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 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 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 GLenum attachment, 707 GLenum attachment,
708 GLenum textarget, 708 GLenum textarget,
709 GLuint texture, 709 GLuint texture,
710 GLint level) { 710 GLint level) {
711 GPU_CLIENT_SINGLE_THREAD_CHECK(); 711 GPU_CLIENT_SINGLE_THREAD_CHECK();
712 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glFramebufferTexture2D(" 712 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glFramebufferTexture2D("
713 << GLES2Util::GetStringFrameBufferTarget(target) << ", " 713 << GLES2Util::GetStringFrameBufferTarget(target) << ", "
714 << GLES2Util::GetStringAttachment(attachment) << ", " 714 << GLES2Util::GetStringAttachment(attachment) << ", "
715 << GLES2Util::GetStringTextureTarget(textarget) << ", " 715 << GLES2Util::GetStringTextureTarget(textarget) << ", "
716 << texture << ", " << level << ")"); 716 << texture << ", " << level << ")");
717 if (level != 0) { 717 helper_->FramebufferTexture2D(target, attachment, textarget, texture, level);
718 SetGLError(GL_INVALID_VALUE, "glFramebufferTexture2D",
719 "level GL_INVALID_VALUE");
720 return;
721 }
722 helper_->FramebufferTexture2D(target, attachment, textarget, texture);
723 CheckGLError(); 718 CheckGLError();
724 } 719 }
725 720
726 void GLES2Implementation::FramebufferTextureLayer(GLenum target, 721 void GLES2Implementation::FramebufferTextureLayer(GLenum target,
727 GLenum attachment, 722 GLenum attachment,
728 GLuint texture, 723 GLuint texture,
729 GLint level, 724 GLint level,
730 GLint layer) { 725 GLint layer) {
731 GPU_CLIENT_SINGLE_THREAD_CHECK(); 726 GPU_CLIENT_SINGLE_THREAD_CHECK();
732 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glFramebufferTextureLayer(" 727 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glFramebufferTextureLayer("
(...skipping 2179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2912 GLuint texture, 2907 GLuint texture,
2913 GLint level, 2908 GLint level,
2914 GLsizei samples) { 2909 GLsizei samples) {
2915 GPU_CLIENT_SINGLE_THREAD_CHECK(); 2910 GPU_CLIENT_SINGLE_THREAD_CHECK();
2916 GPU_CLIENT_LOG("[" << GetLogPrefix() 2911 GPU_CLIENT_LOG("[" << GetLogPrefix()
2917 << "] glFramebufferTexture2DMultisampleEXT(" 2912 << "] glFramebufferTexture2DMultisampleEXT("
2918 << GLES2Util::GetStringFrameBufferTarget(target) << ", " 2913 << GLES2Util::GetStringFrameBufferTarget(target) << ", "
2919 << GLES2Util::GetStringAttachment(attachment) << ", " 2914 << GLES2Util::GetStringAttachment(attachment) << ", "
2920 << GLES2Util::GetStringTextureTarget(textarget) << ", " 2915 << GLES2Util::GetStringTextureTarget(textarget) << ", "
2921 << texture << ", " << level << ", " << samples << ")"); 2916 << texture << ", " << level << ", " << samples << ")");
2922 if (level != 0) {
2923 SetGLError(GL_INVALID_VALUE, "glFramebufferTexture2DMultisampleEXT",
2924 "level GL_INVALID_VALUE");
2925 return;
2926 }
2927 if (samples < 0) { 2917 if (samples < 0) {
2928 SetGLError(GL_INVALID_VALUE, "glFramebufferTexture2DMultisampleEXT", 2918 SetGLError(GL_INVALID_VALUE, "glFramebufferTexture2DMultisampleEXT",
2929 "samples < 0"); 2919 "samples < 0");
2930 return; 2920 return;
2931 } 2921 }
2932 helper_->FramebufferTexture2DMultisampleEXT(target, attachment, textarget, 2922 helper_->FramebufferTexture2DMultisampleEXT(target, attachment, textarget,
2933 texture, samples); 2923 texture, level, samples);
2934 CheckGLError(); 2924 CheckGLError();
2935 } 2925 }
2936 2926
2937 void GLES2Implementation::TexStorage2DEXT(GLenum target, 2927 void GLES2Implementation::TexStorage2DEXT(GLenum target,
2938 GLsizei levels, 2928 GLsizei levels,
2939 GLenum internalFormat, 2929 GLenum internalFormat,
2940 GLsizei width, 2930 GLsizei width,
2941 GLsizei height) { 2931 GLsizei height) {
2942 GPU_CLIENT_SINGLE_THREAD_CHECK(); 2932 GPU_CLIENT_SINGLE_THREAD_CHECK();
2943 GPU_CLIENT_LOG( 2933 GPU_CLIENT_LOG(
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
3589 3579
3590 void GLES2Implementation::BlendBarrierKHR() { 3580 void GLES2Implementation::BlendBarrierKHR() {
3591 GPU_CLIENT_SINGLE_THREAD_CHECK(); 3581 GPU_CLIENT_SINGLE_THREAD_CHECK();
3592 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBlendBarrierKHR(" 3582 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBlendBarrierKHR("
3593 << ")"); 3583 << ")");
3594 helper_->BlendBarrierKHR(); 3584 helper_->BlendBarrierKHR();
3595 CheckGLError(); 3585 CheckGLError();
3596 } 3586 }
3597 3587
3598 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ 3588 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698