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

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

Issue 11363191: Cache more GL state both service and client side. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h ('k') | gpu/gpu_common.gypi » ('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 (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 // 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 // DO NOT EDIT! 7 // DO NOT EDIT!
8 8
9 // It is included by gles2_cmd_decoder_unittest_2.cc 9 // It is included by gles2_cmd_decoder_unittest_2.cc
10 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ 10 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 TEST_F(GLES2DecoderTest2, IsTextureInvalidArgsBadSharedMemoryId) { 208 TEST_F(GLES2DecoderTest2, IsTextureInvalidArgsBadSharedMemoryId) {
209 SpecializedSetup<IsTexture, 0>(false); 209 SpecializedSetup<IsTexture, 0>(false);
210 IsTexture cmd; 210 IsTexture cmd;
211 cmd.Init(client_texture_id_, kInvalidSharedMemoryId, shared_memory_offset_); 211 cmd.Init(client_texture_id_, kInvalidSharedMemoryId, shared_memory_offset_);
212 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 212 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
213 cmd.Init(client_texture_id_, shared_memory_id_, kInvalidSharedMemoryOffset); 213 cmd.Init(client_texture_id_, shared_memory_id_, kInvalidSharedMemoryOffset);
214 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 214 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
215 } 215 }
216 216
217 TEST_F(GLES2DecoderTest2, LineWidthValidArgs) { 217 TEST_F(GLES2DecoderTest2, LineWidthValidArgs) {
218 EXPECT_CALL(*gl_, LineWidth(1)); 218 EXPECT_CALL(*gl_, LineWidth(0.5f));
219 SpecializedSetup<LineWidth, 0>(true); 219 SpecializedSetup<LineWidth, 0>(true);
220 LineWidth cmd; 220 LineWidth cmd;
221 cmd.Init(1); 221 cmd.Init(0.5f);
222 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 222 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
223 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 223 EXPECT_EQ(GL_NO_ERROR, GetGLError());
224 } 224 }
225 225
226 TEST_F(GLES2DecoderTest2, LinkProgramValidArgs) { 226 TEST_F(GLES2DecoderTest2, LinkProgramValidArgs) {
227 EXPECT_CALL(*gl_, LinkProgram(kServiceProgramId)); 227 EXPECT_CALL(*gl_, LinkProgram(kServiceProgramId));
228 SpecializedSetup<LinkProgram, 0>(true); 228 SpecializedSetup<LinkProgram, 0>(true);
229 LinkProgram cmd; 229 LinkProgram cmd;
230 cmd.Init(client_program_id_); 230 cmd.Init(client_program_id_);
231 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 231 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 352
353 TEST_F(GLES2DecoderTest2, StencilMaskSeparateValidArgs) { 353 TEST_F(GLES2DecoderTest2, StencilMaskSeparateValidArgs) {
354 SpecializedSetup<StencilMaskSeparate, 0>(true); 354 SpecializedSetup<StencilMaskSeparate, 0>(true);
355 StencilMaskSeparate cmd; 355 StencilMaskSeparate cmd;
356 cmd.Init(GL_FRONT, 2); 356 cmd.Init(GL_FRONT, 2);
357 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 357 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
358 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 358 EXPECT_EQ(GL_NO_ERROR, GetGLError());
359 } 359 }
360 360
361 TEST_F(GLES2DecoderTest2, StencilOpValidArgs) { 361 TEST_F(GLES2DecoderTest2, StencilOpValidArgs) {
362 EXPECT_CALL(*gl_, StencilOp(GL_KEEP, GL_KEEP, GL_KEEP)); 362 EXPECT_CALL(*gl_, StencilOp(GL_KEEP, GL_INCR, GL_KEEP));
363 SpecializedSetup<StencilOp, 0>(true); 363 SpecializedSetup<StencilOp, 0>(true);
364 StencilOp cmd; 364 StencilOp cmd;
365 cmd.Init(GL_KEEP, GL_KEEP, GL_KEEP); 365 cmd.Init(GL_KEEP, GL_INCR, GL_KEEP);
366 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 366 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
367 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 367 EXPECT_EQ(GL_NO_ERROR, GetGLError());
368 } 368 }
369 369
370 TEST_F(GLES2DecoderTest2, StencilOpSeparateValidArgs) { 370 TEST_F(GLES2DecoderTest2, StencilOpSeparateValidArgs) {
371 EXPECT_CALL(*gl_, StencilOpSeparate(GL_FRONT, GL_KEEP, GL_KEEP, GL_KEEP)); 371 EXPECT_CALL(*gl_, StencilOpSeparate(GL_FRONT, GL_INCR, GL_KEEP, GL_KEEP));
372 SpecializedSetup<StencilOpSeparate, 0>(true); 372 SpecializedSetup<StencilOpSeparate, 0>(true);
373 StencilOpSeparate cmd; 373 StencilOpSeparate cmd;
374 cmd.Init(GL_FRONT, GL_KEEP, GL_KEEP, GL_KEEP); 374 cmd.Init(GL_FRONT, GL_INCR, GL_KEEP, GL_KEEP);
375 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 375 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
376 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 376 EXPECT_EQ(GL_NO_ERROR, GetGLError());
377 } 377 }
378 // TODO(gman): TexImage2D 378 // TODO(gman): TexImage2D
379 379
380 // TODO(gman): TexImage2DImmediate 380 // TODO(gman): TexImage2DImmediate
381 381
382 382
383 TEST_F(GLES2DecoderTest2, TexParameterfValidArgs) { 383 TEST_F(GLES2DecoderTest2, TexParameterfValidArgs) {
384 EXPECT_CALL( 384 EXPECT_CALL(
(...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1731 TEST_F(GLES2DecoderTest2, PopGroupMarkerEXTValidArgs) { 1731 TEST_F(GLES2DecoderTest2, PopGroupMarkerEXTValidArgs) {
1732 SpecializedSetup<PopGroupMarkerEXT, 0>(true); 1732 SpecializedSetup<PopGroupMarkerEXT, 0>(true);
1733 PopGroupMarkerEXT cmd; 1733 PopGroupMarkerEXT cmd;
1734 cmd.Init(); 1734 cmd.Init();
1735 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 1735 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1736 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 1736 EXPECT_EQ(GL_NO_ERROR, GetGLError());
1737 } 1737 }
1738 // TODO(gman): GenVertexArraysOES 1738 // TODO(gman): GenVertexArraysOES
1739 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ 1739 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_
1740 1740
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h ('k') | gpu/gpu_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698