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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h

Issue 7158002: Revert 89002 - Enforce RGB even on buggy drivers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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. DO NOT EDIT! 5 // This file is auto-generated. DO NOT EDIT!
6 6
7 // It is included by gles2_cmd_decoder_unittest_1.cc 7 // It is included by gles2_cmd_decoder_unittest_1.cc
8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ 8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_
9 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ 9 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_
10 10
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 TEST_F(GLES2DecoderTest1, ClearStencilValidArgs) { 319 TEST_F(GLES2DecoderTest1, ClearStencilValidArgs) {
320 EXPECT_CALL(*gl_, ClearStencil(1)); 320 EXPECT_CALL(*gl_, ClearStencil(1));
321 SpecializedSetup<ClearStencil, 0>(true); 321 SpecializedSetup<ClearStencil, 0>(true);
322 ClearStencil cmd; 322 ClearStencil cmd;
323 cmd.Init(1); 323 cmd.Init(1);
324 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 324 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
325 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 325 EXPECT_EQ(GL_NO_ERROR, GetGLError());
326 } 326 }
327 327
328 TEST_F(GLES2DecoderTest1, ColorMaskValidArgs) { 328 TEST_F(GLES2DecoderTest1, ColorMaskValidArgs) {
329 EXPECT_CALL(*gl_, ColorMask(1, 2, 3, 4));
329 SpecializedSetup<ColorMask, 0>(true); 330 SpecializedSetup<ColorMask, 0>(true);
330 ColorMask cmd; 331 ColorMask cmd;
331 cmd.Init(true, true, true, true); 332 cmd.Init(1, 2, 3, 4);
332 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 333 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
333 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 334 EXPECT_EQ(GL_NO_ERROR, GetGLError());
334 } 335 }
335 // TODO(gman): CompileShader 336 // TODO(gman): CompileShader
336 // TODO(gman): CompressedTexImage2D 337 // TODO(gman): CompressedTexImage2D
337 338
338 // TODO(gman): CompressedTexImage2DImmediate 339 // TODO(gman): CompressedTexImage2DImmediate
339 340
340 // TODO(gman): CompressedTexImage2DBucket 341 // TODO(gman): CompressedTexImage2DBucket
341 // TODO(gman): CompressedTexSubImage2D 342 // TODO(gman): CompressedTexSubImage2D
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 TEST_F(GLES2DecoderTest1, DepthFuncValidArgs) { 635 TEST_F(GLES2DecoderTest1, DepthFuncValidArgs) {
635 EXPECT_CALL(*gl_, DepthFunc(GL_NEVER)); 636 EXPECT_CALL(*gl_, DepthFunc(GL_NEVER));
636 SpecializedSetup<DepthFunc, 0>(true); 637 SpecializedSetup<DepthFunc, 0>(true);
637 DepthFunc cmd; 638 DepthFunc cmd;
638 cmd.Init(GL_NEVER); 639 cmd.Init(GL_NEVER);
639 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 640 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
640 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 641 EXPECT_EQ(GL_NO_ERROR, GetGLError());
641 } 642 }
642 643
643 TEST_F(GLES2DecoderTest1, DepthMaskValidArgs) { 644 TEST_F(GLES2DecoderTest1, DepthMaskValidArgs) {
645 EXPECT_CALL(*gl_, DepthMask(1));
644 SpecializedSetup<DepthMask, 0>(true); 646 SpecializedSetup<DepthMask, 0>(true);
645 DepthMask cmd; 647 DepthMask cmd;
646 cmd.Init(true); 648 cmd.Init(1);
647 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 649 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
648 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 650 EXPECT_EQ(GL_NO_ERROR, GetGLError());
649 } 651 }
650 652
651 TEST_F(GLES2DecoderTest1, DepthRangefValidArgs) { 653 TEST_F(GLES2DecoderTest1, DepthRangefValidArgs) {
652 EXPECT_CALL(*gl_, DepthRange(1, 2)); 654 EXPECT_CALL(*gl_, DepthRange(1, 2));
653 SpecializedSetup<DepthRangef, 0>(true); 655 SpecializedSetup<DepthRangef, 0>(true);
654 DepthRangef cmd; 656 DepthRangef cmd;
655 cmd.Init(1, 2); 657 cmd.Init(1, 2);
656 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 658 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1802 result->size = 0; 1804 result->size = 0;
1803 GetVertexAttribfv cmd; 1805 GetVertexAttribfv cmd;
1804 cmd.Init( 1806 cmd.Init(
1805 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_, 1807 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_,
1806 kInvalidSharedMemoryOffset); 1808 kInvalidSharedMemoryOffset);
1807 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 1809 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
1808 EXPECT_EQ(0u, result->size); 1810 EXPECT_EQ(0u, result->size);
1809 } 1811 }
1810 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ 1812 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_
1811 1813
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698