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

Side by Side Diff: gpu/command_buffer/service/vertex_array_manager_unittest.cc

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « gpu/command_buffer/service/vertex_array_manager.cc ('k') | gpu/config/gpu_info_collector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/service/vertex_array_manager.h" 5 #include "gpu/command_buffer/service/vertex_array_manager.h"
6 #include "gpu/command_buffer/service/vertex_attrib_manager.h" 6 #include "gpu/command_buffer/service/vertex_attrib_manager.h"
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "gpu/command_buffer/service/feature_info.h" 9 #include "gpu/command_buffer/service/feature_info.h"
10 #include "gpu/command_buffer/service/gpu_service_test.h" 10 #include "gpu/command_buffer/service/gpu_service_test.h"
(...skipping 11 matching lines...) Expand all
22 public: 22 public:
23 static const uint32 kNumVertexAttribs = 8; 23 static const uint32 kNumVertexAttribs = 8;
24 24
25 VertexArrayManagerTest() { 25 VertexArrayManagerTest() {
26 } 26 }
27 27
28 ~VertexArrayManagerTest() override {} 28 ~VertexArrayManagerTest() override {}
29 29
30 protected: 30 protected:
31 void SetUp() override { 31 void SetUp() override {
32 GpuServiceTest::SetUp(); 32 GpuServiceTest::SetUpWithGLVersion("2.1", "GL_ARB_vertex_array_object");
33 manager_.reset(new VertexArrayManager()); 33 manager_.reset(new VertexArrayManager());
34 } 34 }
35 35
36 void TearDown() override { 36 void TearDown() override {
37 manager_.reset(); 37 manager_.reset();
38 GpuServiceTest::TearDown(); 38 GpuServiceTest::TearDown();
39 } 39 }
40 40
41 scoped_ptr<VertexArrayManager> manager_; 41 scoped_ptr<VertexArrayManager> manager_;
42 }; 42 };
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 manager.Destroy(true); 90 manager.Destroy(true);
91 // Check that resources got freed. 91 // Check that resources got freed.
92 info1 = manager.GetVertexAttribManager(kClient1Id); 92 info1 = manager.GetVertexAttribManager(kClient1Id);
93 ASSERT_TRUE(info1 == NULL); 93 ASSERT_TRUE(info1 == NULL);
94 } 94 }
95 95
96 } // namespace gles2 96 } // namespace gles2
97 } // namespace gpu 97 } // namespace gpu
98 98
99 99
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/vertex_array_manager.cc ('k') | gpu/config/gpu_info_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698