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

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

Issue 1872663002: Enable TexStorage on Desktop GL lower than 4.2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc ('k') | ui/gl/generate_bindings.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 3459 matching lines...) Expand 10 before | Expand all | Expand 10 after
3470 EXPECT_EQ(num_formats, result->GetNumResults()); 3470 EXPECT_EQ(num_formats, result->GetNumResults());
3471 3471
3472 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 3472 EXPECT_EQ(GL_NO_ERROR, GetGLError());
3473 } 3473 }
3474 3474
3475 TEST_P(GLES3DecoderTest, TexStorage3DValidArgs) { 3475 TEST_P(GLES3DecoderTest, TexStorage3DValidArgs) {
3476 DoBindTexture(GL_TEXTURE_3D, client_texture_id_, kServiceTextureId); 3476 DoBindTexture(GL_TEXTURE_3D, client_texture_id_, kServiceTextureId);
3477 EXPECT_CALL(*gl_, TexStorage3D(GL_TEXTURE_3D, 2, GL_RGB565, 4, 5, 6)) 3477 EXPECT_CALL(*gl_, TexStorage3D(GL_TEXTURE_3D, 2, GL_RGB565, 4, 5, 6))
3478 .Times(1) 3478 .Times(1)
3479 .RetiresOnSaturation(); 3479 .RetiresOnSaturation();
3480 EXPECT_CALL(*gl_, GetError())
3481 .WillOnce(Return(GL_NO_ERROR))
3482 .WillOnce(Return(GL_NO_ERROR))
3483 .RetiresOnSaturation();
3484 cmds::TexStorage3D cmd; 3480 cmds::TexStorage3D cmd;
3485 cmd.Init(GL_TEXTURE_3D, 2, GL_RGB565, 4, 5, 6); 3481 cmd.Init(GL_TEXTURE_3D, 2, GL_RGB565, 4, 5, 6);
3486 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 3482 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
3487 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 3483 EXPECT_EQ(GL_NO_ERROR, GetGLError());
3488 } 3484 }
3489 3485
3490 TEST_P(GLES3DecoderTest, TexImage3DValidArgs) { 3486 TEST_P(GLES3DecoderTest, TexImage3DValidArgs) {
3491 const GLenum kTarget = GL_TEXTURE_3D; 3487 const GLenum kTarget = GL_TEXTURE_3D;
3492 const GLint kLevel = 2; 3488 const GLint kLevel = 2;
3493 const GLint kInternalFormat = GL_RGBA8; 3489 const GLint kInternalFormat = GL_RGBA8;
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
3691 // TODO(gman): CompressedTexSubImage2DImmediate 3687 // TODO(gman): CompressedTexSubImage2DImmediate
3692 3688
3693 // TODO(gman): TexImage2D 3689 // TODO(gman): TexImage2D
3694 3690
3695 // TODO(gman): TexImage2DImmediate 3691 // TODO(gman): TexImage2DImmediate
3696 3692
3697 // TODO(gman): TexSubImage2DImmediate 3693 // TODO(gman): TexSubImage2DImmediate
3698 3694
3699 } // namespace gles2 3695 } // namespace gles2
3700 } // namespace gpu 3696 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc ('k') | ui/gl/generate_bindings.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698