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

Side by Side Diff: components/viz/host/server_gpu_memory_buffer_manager_unittest.cc

Issue 2941423002: viz: Move ServerGpuMemoryBufferManager into host/gpu. (Closed)
Patch Set: fix tot merge Created 3 years, 5 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 | « components/viz/host/server_gpu_memory_buffer_manager.cc ('k') | services/ui/ws/BUILD.gn » ('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 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
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
OLDNEW
« no previous file with comments | « components/viz/host/server_gpu_memory_buffer_manager.cc ('k') | services/ui/ws/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698