| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 } | 64 } |
| 65 | 65 |
| 66 gpu::GpuMemoryBufferManager* StubContextFactory::GetGpuMemoryBufferManager() { | 66 gpu::GpuMemoryBufferManager* StubContextFactory::GetGpuMemoryBufferManager() { |
| 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 uint32_t StubContextFactory::AllocateSurfaceClientId() { |
| 75 StubContextFactory::CreateSurfaceIdAllocator() { | 75 return next_surface_id_namespace_++; |
| 76 return base::WrapUnique( | |
| 77 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); | |
| 78 } | 76 } |
| 79 | 77 |
| 80 cc::SurfaceManager* StubContextFactory::GetSurfaceManager() { | 78 cc::SurfaceManager* StubContextFactory::GetSurfaceManager() { |
| 81 // NOTIMPLEMENTED(); | 79 // NOTIMPLEMENTED(); |
| 82 return nullptr; | 80 return nullptr; |
| 83 } | 81 } |
| 84 | 82 |
| 85 void StubContextFactory::ResizeDisplay(ui::Compositor* compositor, | 83 void StubContextFactory::ResizeDisplay(ui::Compositor* compositor, |
| 86 const gfx::Size& size) {} | 84 const gfx::Size& size) {} |
| 87 | 85 |
| 88 void StubContextFactory::SetDisplayColorSpace( | 86 void StubContextFactory::SetDisplayColorSpace( |
| 89 ui::Compositor* compositor, | 87 ui::Compositor* compositor, |
| 90 const gfx::ColorSpace& color_space) {} | 88 const gfx::ColorSpace& color_space) {} |
| 91 | 89 |
| 92 } // namespace sysui | 90 } // namespace sysui |
| 93 } // namespace ash | 91 } // namespace ash |
| OLD | NEW |