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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_id_test.cc

Issue 465040: Added CommandBufferClient, CommandBufferStub and some IPC messages.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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 1
2 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 2 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 // This file contains unit tests for gles2 commmand ids 6 // This file contains unit tests for gles2 commmand ids
7 7
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "gpu/command_buffer/common/gles2_cmd_format.h" 9 #include "gpu/command_buffer/common/gles2_cmd_format.h"
10 10
11 namespace command_buffer { 11 namespace gpu {
12 namespace gles2 { 12 namespace gles2 {
13 13
14 // *** These IDs MUST NOT CHANGE!!! *** 14 // *** These IDs MUST NOT CHANGE!!! ***
15 // Changing them will break all client programs. 15 // Changing them will break all client programs.
16 TEST(GLES2CommandIdTest, CommandIdsMatch) { 16 TEST(GLES2CommandIdTest, CommandIdsMatch) {
17 COMPILE_ASSERT(ActiveTexture::kCmdId == 256, 17 COMPILE_ASSERT(ActiveTexture::kCmdId == 256,
18 GLES2_ActiveTexture_kCmdId_mismatch); 18 GLES2_ActiveTexture_kCmdId_mismatch);
19 COMPILE_ASSERT(AttachShader::kCmdId == 257, 19 COMPILE_ASSERT(AttachShader::kCmdId == 257,
20 GLES2_AttachShader_kCmdId_mismatch); 20 GLES2_AttachShader_kCmdId_mismatch);
21 COMPILE_ASSERT(BindAttribLocation::kCmdId == 258, 21 COMPILE_ASSERT(BindAttribLocation::kCmdId == 258,
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 COMPILE_ASSERT(VertexAttrib4fvImmediate::kCmdId == 428, 361 COMPILE_ASSERT(VertexAttrib4fvImmediate::kCmdId == 428,
362 GLES2_VertexAttrib4fvImmediate_kCmdId_mismatch); 362 GLES2_VertexAttrib4fvImmediate_kCmdId_mismatch);
363 COMPILE_ASSERT(VertexAttribPointer::kCmdId == 429, 363 COMPILE_ASSERT(VertexAttribPointer::kCmdId == 429,
364 GLES2_VertexAttribPointer_kCmdId_mismatch); 364 GLES2_VertexAttribPointer_kCmdId_mismatch);
365 COMPILE_ASSERT(Viewport::kCmdId == 430, 365 COMPILE_ASSERT(Viewport::kCmdId == 430,
366 GLES2_Viewport_kCmdId_mismatch); 366 GLES2_Viewport_kCmdId_mismatch);
367 COMPILE_ASSERT(SwapBuffers::kCmdId == 431, 367 COMPILE_ASSERT(SwapBuffers::kCmdId == 431,
368 GLES2_SwapBuffers_kCmdId_mismatch); 368 GLES2_SwapBuffers_kCmdId_mismatch);
369 } 369 }
370 } // namespace gles2 370 } // namespace gles2
371 } // namespace command_buffer 371 } // namespace gpu
372 372
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_format_test.cc ('k') | gpu/command_buffer/common/gles2_cmd_ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698