OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "components/viz/common/server_gpu_memory_buffer_manager.h" | 5 #include "components/viz/host/server_gpu_memory_buffer_manager.h" |
6 | 6 |
7 #include "base/test/scoped_task_environment.h" | 7 #include "base/test/scoped_task_environment.h" |
8 #include "gpu/ipc/host/gpu_memory_buffer_support.h" | 8 #include "gpu/ipc/host/gpu_memory_buffer_support.h" |
9 #include "services/ui/gpu/interfaces/gpu_service.mojom.h" | 9 #include "services/ui/gpu/interfaces/gpu_service.mojom.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "ui/gfx/client_native_pixmap_factory.h" | 11 #include "ui/gfx/client_native_pixmap_factory.h" |
12 | 12 |
13 namespace viz { | 13 namespace viz { |
14 | 14 |
15 namespace { | 15 namespace { |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 EXPECT_TRUE(allocated_handle.is_null()); | 249 EXPECT_TRUE(allocated_handle.is_null()); |
250 } else { | 250 } else { |
251 EXPECT_FALSE(allocated_handle.is_null()); | 251 EXPECT_FALSE(allocated_handle.is_null()); |
252 EXPECT_EQ(gfx::GpuMemoryBufferType::SHARED_MEMORY_BUFFER, | 252 EXPECT_EQ(gfx::GpuMemoryBufferType::SHARED_MEMORY_BUFFER, |
253 allocated_handle.type); | 253 allocated_handle.type); |
254 } | 254 } |
255 } | 255 } |
256 } | 256 } |
257 | 257 |
258 } // namespace viz | 258 } // namespace viz |
OLD | NEW |