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