| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |