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_attrib_manager.h" | 5 #include "gpu/command_buffer/service/vertex_attrib_manager.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "gpu/command_buffer/common/gl_mock.h" | |
9 #include "gpu/command_buffer/service/feature_info.h" | 8 #include "gpu/command_buffer/service/feature_info.h" |
10 #include "gpu/command_buffer/service/test_helper.h" | 9 #include "gpu/command_buffer/service/test_helper.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 #include "ui/gl/gl_mock.h" |
12 | 12 |
13 using ::testing::Pointee; | 13 using ::testing::Pointee; |
14 using ::testing::_; | 14 using ::testing::_; |
15 | 15 |
16 namespace gpu { | 16 namespace gpu { |
17 namespace gles2 { | 17 namespace gles2 { |
18 | 18 |
19 class VertexAttribManagerTest : public testing::Test { | 19 class VertexAttribManagerTest : public testing::Test { |
20 public: | 20 public: |
21 static const uint32 kNumVertexAttribs = 8; | 21 static const uint32 kNumVertexAttribs = 8; |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 // The VertexAttribManager must be destroyed before the BufferManager | 219 // The VertexAttribManager must be destroyed before the BufferManager |
220 // so it releases its buffers. | 220 // so it releases its buffers. |
221 manager_ = NULL; | 221 manager_ = NULL; |
222 buffer_manager.Destroy(false); | 222 buffer_manager.Destroy(false); |
223 } | 223 } |
224 | 224 |
225 } // namespace gles2 | 225 } // namespace gles2 |
226 } // namespace gpu | 226 } // namespace gpu |
227 | 227 |
228 | 228 |
OLD | NEW |