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

Side by Side Diff: gpu/command_buffer/client/vertex_array_object_manager_unittest.cc

Issue 693943003: Update from https://crrev.com/302630 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/client/vertex_array_object_manager.h" 5 #include "gpu/command_buffer/client/vertex_array_object_manager.h"
6 6
7 #include <GLES2/gl2ext.h> 7 #include <GLES2/gl2ext.h>
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace gpu { 10 namespace gpu {
11 namespace gles2 { 11 namespace gles2 {
12 12
13 class VertexArrayObjectManagerTest : public testing::Test { 13 class VertexArrayObjectManagerTest : public testing::Test {
14 protected: 14 protected:
15 static const GLuint kMaxAttribs = 4; 15 static const GLuint kMaxAttribs = 4;
16 static const GLuint kClientSideArrayBuffer = 0x1234; 16 static const GLuint kClientSideArrayBuffer = 0x1234;
17 static const GLuint kClientSideElementArrayBuffer = 0x1235; 17 static const GLuint kClientSideElementArrayBuffer = 0x1235;
18 static const bool kSupportClientSideArrays = true;
18 19
19 void SetUp() override { 20 void SetUp() override {
20 manager_.reset(new VertexArrayObjectManager( 21 manager_.reset(new VertexArrayObjectManager(
21 kMaxAttribs, 22 kMaxAttribs,
22 kClientSideArrayBuffer, 23 kClientSideArrayBuffer,
23 kClientSideElementArrayBuffer)); 24 kClientSideElementArrayBuffer,
25 kSupportClientSideArrays));
24 } 26 }
25 void TearDown() override {} 27 void TearDown() override {}
26 28
27 scoped_ptr<VertexArrayObjectManager> manager_; 29 scoped_ptr<VertexArrayObjectManager> manager_;
28 }; 30 };
29 31
30 // GCC requires these declarations, but MSVC requires they not be present 32 // GCC requires these declarations, but MSVC requires they not be present
31 #ifndef _MSC_VER 33 #ifndef _MSC_VER
32 const GLuint VertexArrayObjectManagerTest::kMaxAttribs; 34 const GLuint VertexArrayObjectManagerTest::kMaxAttribs;
33 const GLuint VertexArrayObjectManagerTest::kClientSideArrayBuffer; 35 const GLuint VertexArrayObjectManagerTest::kClientSideArrayBuffer;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 EXPECT_TRUE(manager_->IsReservedId(kClientSideArrayBuffer)); 254 EXPECT_TRUE(manager_->IsReservedId(kClientSideArrayBuffer));
253 EXPECT_TRUE(manager_->IsReservedId(kClientSideElementArrayBuffer)); 255 EXPECT_TRUE(manager_->IsReservedId(kClientSideElementArrayBuffer));
254 EXPECT_FALSE(manager_->IsReservedId(0)); 256 EXPECT_FALSE(manager_->IsReservedId(0));
255 EXPECT_FALSE(manager_->IsReservedId(1)); 257 EXPECT_FALSE(manager_->IsReservedId(1));
256 EXPECT_FALSE(manager_->IsReservedId(2)); 258 EXPECT_FALSE(manager_->IsReservedId(2));
257 } 259 }
258 260
259 } // namespace gles2 261 } // namespace gles2
260 } // namespace gpu 262 } // namespace gpu
261 263
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/vertex_array_object_manager.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698