| 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/mus/stub_context_factory.h" | 5 #include "ash/mus/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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(next_surface_id_namespace_++)); |
| 78 } | 78 } |
| 79 | 79 |
| 80 cc::SurfaceManager* StubContextFactory::GetSurfaceManager() { |
| 81 // NOTIMPLEMENTED(); |
| 82 return nullptr; |
| 83 } |
| 84 |
| 80 void StubContextFactory::ResizeDisplay(ui::Compositor* compositor, | 85 void StubContextFactory::ResizeDisplay(ui::Compositor* compositor, |
| 81 const gfx::Size& size) {} | 86 const gfx::Size& size) {} |
| 82 | 87 |
| 83 } // namespace sysui | 88 } // namespace sysui |
| 84 } // namespace ash | 89 } // namespace ash |
| OLD | NEW |