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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation_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 // 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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_autogen.h ('k') | gpu/command_buffer/common/gles2_cmd_format_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698