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

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

Issue 436017: Branched gpu process and command buffer code into Chrome tree. Fixed up paths... (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
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_format_test.cc ('k') | gpu/gpu.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 2 // Copyright (c) 2006-2008 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 "tests/common/win/testing_common.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 command_buffer {
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 == 1024, 17 COMPILE_ASSERT(ActiveTexture::kCmdId == 1024,
18 GLES2_ActiveTexture_kCmdId_mismatch); 18 GLES2_ActiveTexture_kCmdId_mismatch);
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 COMPILE_ASSERT(VertexAttribPointer::kCmdId == 1197, 363 COMPILE_ASSERT(VertexAttribPointer::kCmdId == 1197,
364 GLES2_VertexAttribPointer_kCmdId_mismatch); 364 GLES2_VertexAttribPointer_kCmdId_mismatch);
365 COMPILE_ASSERT(Viewport::kCmdId == 1198, 365 COMPILE_ASSERT(Viewport::kCmdId == 1198,
366 GLES2_Viewport_kCmdId_mismatch); 366 GLES2_Viewport_kCmdId_mismatch);
367 COMPILE_ASSERT(SwapBuffers::kCmdId == 1199, 367 COMPILE_ASSERT(SwapBuffers::kCmdId == 1199,
368 GLES2_SwapBuffers_kCmdId_mismatch); 368 GLES2_SwapBuffers_kCmdId_mismatch);
369 } 369 }
370 } // namespace gles2 370 } // namespace gles2
371 } // namespace command_buffer 371 } // namespace command_buffer
372 372
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_format_test.cc ('k') | gpu/gpu.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698