OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ash/sysui/stub_context_factory.h" | 5 #include "ash/sysui/stub_context_factory.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "cc/output/context_provider.h" | 8 #include "cc/output/context_provider.h" |
9 #include "cc/raster/single_thread_task_graph_runner.h" | 9 #include "cc/raster/single_thread_task_graph_runner.h" |
10 #include "cc/surfaces/surface_id_allocator.h" | 10 #include "cc/surfaces/surface_id_allocator.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 return nullptr; | 67 return nullptr; |
68 } | 68 } |
69 | 69 |
70 cc::TaskGraphRunner* StubContextFactory::GetTaskGraphRunner() { | 70 cc::TaskGraphRunner* StubContextFactory::GetTaskGraphRunner() { |
71 return task_graph_runner_.get(); | 71 return task_graph_runner_.get(); |
72 } | 72 } |
73 | 73 |
74 std::unique_ptr<cc::SurfaceIdAllocator> | 74 std::unique_ptr<cc::SurfaceIdAllocator> |
75 StubContextFactory::CreateSurfaceIdAllocator() { | 75 StubContextFactory::CreateSurfaceIdAllocator() { |
76 return base::WrapUnique( | 76 return base::WrapUnique( |
77 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); | 77 new cc::SurfaceIdAllocator(0 /* gpu_id */, next_surface_id_namespace_++)); |
78 } | 78 } |
79 | 79 |
80 cc::SurfaceManager* StubContextFactory::GetSurfaceManager() { | 80 cc::SurfaceManager* StubContextFactory::GetSurfaceManager() { |
81 // NOTIMPLEMENTED(); | 81 // NOTIMPLEMENTED(); |
82 return nullptr; | 82 return nullptr; |
83 } | 83 } |
84 | 84 |
85 void StubContextFactory::ResizeDisplay(ui::Compositor* compositor, | 85 void StubContextFactory::ResizeDisplay(ui::Compositor* compositor, |
86 const gfx::Size& size) {} | 86 const gfx::Size& size) {} |
87 | 87 |
88 void StubContextFactory::SetDisplayColorSpace( | 88 void StubContextFactory::SetDisplayColorSpace( |
89 ui::Compositor* compositor, | 89 ui::Compositor* compositor, |
90 const gfx::ColorSpace& color_space) {} | 90 const gfx::ColorSpace& color_space) {} |
91 | 91 |
92 } // namespace sysui | 92 } // namespace sysui |
93 } // namespace ash | 93 } // namespace ash |
OLD | NEW |