OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h" | 5 #include "gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.h" |
6 #include "content/common/gpu/client/gpu_memory_buffer_impl_test_template.h" | 6 #include "gpu/ipc/client/gpu_memory_buffer_impl_test_template.h" |
7 | 7 |
8 namespace content { | 8 namespace gpu { |
9 namespace { | 9 namespace { |
10 | 10 |
11 INSTANTIATE_TYPED_TEST_CASE_P(GpuMemoryBufferImplSharedMemory, | 11 INSTANTIATE_TYPED_TEST_CASE_P(GpuMemoryBufferImplSharedMemory, |
12 GpuMemoryBufferImplTest, | 12 GpuMemoryBufferImplTest, |
13 GpuMemoryBufferImplSharedMemory); | 13 GpuMemoryBufferImplSharedMemory); |
14 | 14 |
15 void BufferDestroyed(bool* destroyed, const gpu::SyncToken& sync_token) { | 15 void BufferDestroyed(bool* destroyed, const gpu::SyncToken& sync_token) { |
16 *destroyed = true; | 16 *destroyed = true; |
17 } | 17 } |
18 | 18 |
(...skipping 11 matching lines...) Expand all Loading... |
30 ASSERT_TRUE(buffer); | 30 ASSERT_TRUE(buffer); |
31 EXPECT_EQ(buffer->GetFormat(), format); | 31 EXPECT_EQ(buffer->GetFormat(), format); |
32 | 32 |
33 // Check if destruction callback is executed when deleting the buffer. | 33 // Check if destruction callback is executed when deleting the buffer. |
34 buffer.reset(); | 34 buffer.reset(); |
35 ASSERT_TRUE(destroyed); | 35 ASSERT_TRUE(destroyed); |
36 } | 36 } |
37 } | 37 } |
38 | 38 |
39 } // namespace | 39 } // namespace |
40 } // namespace content | 40 } // namespace gpu |
OLD | NEW |