| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ui/views/mus/surface_context_factory.h" | 5 #include "ui/views/mus/surface_context_factory.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "cc/output/output_surface.h" | 8 #include "cc/output/output_surface.h" |
| 9 #include "cc/resources/shared_bitmap_manager.h" | 9 #include "cc/resources/shared_bitmap_manager.h" |
| 10 #include "cc/surfaces/surface_id_allocator.h" | 10 #include "cc/surfaces/surface_id_allocator.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 cc::TaskGraphRunner* SurfaceContextFactory::GetTaskGraphRunner() { | 89 cc::TaskGraphRunner* SurfaceContextFactory::GetTaskGraphRunner() { |
| 90 return raster_thread_helper_.task_graph_runner(); | 90 return raster_thread_helper_.task_graph_runner(); |
| 91 } | 91 } |
| 92 | 92 |
| 93 uint32_t SurfaceContextFactory::AllocateSurfaceClientId() { | 93 uint32_t SurfaceContextFactory::AllocateSurfaceClientId() { |
| 94 return next_surface_id_namespace_++; | 94 return next_surface_id_namespace_++; |
| 95 } | 95 } |
| 96 | 96 |
| 97 cc::SurfaceManager* SurfaceContextFactory::GetSurfaceManager() { | 97 cc::SurfaceManager* SurfaceContextFactory::GetSurfaceManager() { |
| 98 // NOTIMPLEMENTED(); | 98 return &surface_manager_; |
| 99 return nullptr; | |
| 100 } | 99 } |
| 101 | 100 |
| 102 void SurfaceContextFactory::SetDisplayVisible(ui::Compositor* compositor, | 101 void SurfaceContextFactory::SetDisplayVisible(ui::Compositor* compositor, |
| 103 bool visible) { | 102 bool visible) { |
| 104 // TODO(fsamuel): display[compositor]->SetVisible(visible); | 103 // TODO(fsamuel): display[compositor]->SetVisible(visible); |
| 105 } | 104 } |
| 106 | 105 |
| 107 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor, | 106 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor, |
| 108 const gfx::Size& size) { | 107 const gfx::Size& size) { |
| 109 // TODO(fsamuel): display[compositor]->Resize(size); | 108 // TODO(fsamuel): display[compositor]->Resize(size); |
| 110 } | 109 } |
| 111 | 110 |
| 112 } // namespace views | 111 } // namespace views |
| OLD | NEW |