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

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

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: update framebufferTexture2DMultisamplerEXT 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_unittest_base.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 .WillOnce(Return(GL_NO_ERROR)) 1241 .WillOnce(Return(GL_NO_ERROR))
1242 .RetiresOnSaturation(); 1242 .RetiresOnSaturation();
1243 EXPECT_CALL(*gl_, FramebufferTexture2DEXT( 1243 EXPECT_CALL(*gl_, FramebufferTexture2DEXT(
1244 target, attachment, textarget, texture_service_id, level)) 1244 target, attachment, textarget, texture_service_id, level))
1245 .Times(1) 1245 .Times(1)
1246 .RetiresOnSaturation(); 1246 .RetiresOnSaturation();
1247 EXPECT_CALL(*gl_, GetError()) 1247 EXPECT_CALL(*gl_, GetError())
1248 .WillOnce(Return(error)) 1248 .WillOnce(Return(error))
1249 .RetiresOnSaturation(); 1249 .RetiresOnSaturation();
1250 cmds::FramebufferTexture2D cmd; 1250 cmds::FramebufferTexture2D cmd;
1251 cmd.Init(target, attachment, textarget, texture_client_id); 1251 cmd.Init(target, attachment, textarget, texture_client_id, level);
1252 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 1252 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1253 } 1253 }
1254 1254
1255 void GLES2DecoderTestBase::DoFramebufferRenderbuffer( 1255 void GLES2DecoderTestBase::DoFramebufferRenderbuffer(
1256 GLenum target, 1256 GLenum target,
1257 GLenum attachment, 1257 GLenum attachment,
1258 GLenum renderbuffer_target, 1258 GLenum renderbuffer_target,
1259 GLuint renderbuffer_client_id, 1259 GLuint renderbuffer_client_id,
1260 GLuint renderbuffer_service_id, 1260 GLuint renderbuffer_service_id,
1261 GLenum error) { 1261 GLenum error) {
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
1900 SetupDefaultProgram(); 1900 SetupDefaultProgram();
1901 } 1901 }
1902 1902
1903 // Include the auto-generated part of this file. We split this because it means 1903 // Include the auto-generated part of this file. We split this because it means
1904 // we can easily edit the non-auto generated parts right here in this file 1904 // we can easily edit the non-auto generated parts right here in this file
1905 // instead of having to edit some template or the code generator. 1905 // instead of having to edit some template or the code generator.
1906 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" 1906 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h"
1907 1907
1908 } // namespace gles2 1908 } // namespace gles2
1909 } // namespace gpu 1909 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698