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 // Tests for the Command Buffer Helper. | 5 // Tests for the Command Buffer Helper. |
6 | 6 |
7 #include "gpu/command_buffer/client/gles2_implementation.h" | 7 #include "gpu/command_buffer/client/gles2_implementation.h" |
8 | 8 |
9 #include <GLES2/gl2ext.h> | 9 #include <GLES2/gl2ext.h> |
10 #include "gpu/command_buffer/common/command_buffer.h" | 10 #include "gpu/command_buffer/common/command_buffer.h" |
11 #include "gpu/GLES2/gles2_command_buffer.h" | |
12 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
14 | 13 |
15 #if !defined(GLES2_SUPPORT_CLIENT_SIDE_ARRAYS) | 14 #if !defined(GLES2_SUPPORT_CLIENT_SIDE_ARRAYS) |
16 #define GLES2_SUPPORT_CLIENT_SIDE_ARRAYS | 15 #define GLES2_SUPPORT_CLIENT_SIDE_ARRAYS |
17 #endif | 16 #endif |
18 | 17 |
19 namespace gpu { | 18 namespace gpu { |
20 | 19 |
21 class GLES2MockCommandBufferHelper : public CommandBuffer { | 20 class GLES2MockCommandBufferHelper : public CommandBuffer { |
(...skipping 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1684 EXPECT_TRUE(CheckRect( | 1683 EXPECT_TRUE(CheckRect( |
1685 kWidth / 2, 1, kFormat, kType, kPixelStoreUnpackAlignment, false, | 1684 kWidth / 2, 1, kFormat, kType, kPixelStoreUnpackAlignment, false, |
1686 pixels.get() + padded_row_size + part_size, | 1685 pixels.get() + padded_row_size + part_size, |
1687 GetTransferAddressFromOffsetAs<uint8>(offset4, part_size))); | 1686 GetTransferAddressFromOffsetAs<uint8>(offset4, part_size))); |
1688 } | 1687 } |
1689 | 1688 |
1690 } // namespace gles2 | 1689 } // namespace gles2 |
1691 } // namespace gpu | 1690 } // namespace gpu |
1692 | 1691 |
1693 | 1692 |
OLD | NEW |