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

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

Issue 7623001: Rename and document glCommandBufferEnableCHROMIUM (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix stuff Created 9 years, 4 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 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 5 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
6 6
7 #include <GLES2/gl2.h> 7 #include <GLES2/gl2.h>
8 #include <GLES2/gl2ext.h> 8 #include <GLES2/gl2ext.h>
9 #include <GLES2/gles2_command_buffer.h>
10 9
11 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
12 11
13 namespace gpu { 12 namespace gpu {
14 namespace gles2 { 13 namespace gles2 {
15 14
16 class GLES2UtilTest : public testing:: Test { 15 class GLES2UtilTest : public testing:: Test {
17 protected: 16 protected:
18 GLES2Util util_; 17 GLES2Util util_;
19 }; 18 };
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 kWidth * 3, size); 100 kWidth * 3, size);
102 EXPECT_TRUE(GLES2Util::ComputeImageDataSize( 101 EXPECT_TRUE(GLES2Util::ComputeImageDataSize(
103 kWidth, kHeight, GL_RGB, GL_UNSIGNED_BYTE, 8, &size)); 102 kWidth, kHeight, GL_RGB, GL_UNSIGNED_BYTE, 8, &size));
104 EXPECT_EQ((kWidth * 3 + 7) * (kHeight - 1) + 103 EXPECT_EQ((kWidth * 3 + 7) * (kHeight - 1) +
105 kWidth * 3, size); 104 kWidth * 3, size);
106 } 105 }
107 106
108 } // namespace gles2 107 } // namespace gles2
109 } // namespace gpu 108 } // namespace gpu
110 109
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h ('k') | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698