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 "mandoline/ui/aura/surface_context_factory.h" | 5 #include "mandoline/ui/aura/surface_context_factory.h" |
6 | 6 |
7 #include "cc/output/output_surface.h" | 7 #include "cc/output/output_surface.h" |
8 #include "cc/resources/shared_bitmap_manager.h" | 8 #include "cc/resources/shared_bitmap_manager.h" |
9 #include "cc/surfaces/surface_id_allocator.h" | 9 #include "cc/surfaces/surface_id_allocator.h" |
10 #include "components/view_manager/public/cpp/view.h" | 10 #include "components/view_manager/public/cpp/view.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 SurfaceContextFactory::SharedMainThreadContextProvider() { | 56 SurfaceContextFactory::SharedMainThreadContextProvider() { |
57 NOTIMPLEMENTED(); | 57 NOTIMPLEMENTED(); |
58 return nullptr; | 58 return nullptr; |
59 } | 59 } |
60 | 60 |
61 void SurfaceContextFactory::RemoveCompositor(ui::Compositor* compositor) { | 61 void SurfaceContextFactory::RemoveCompositor(ui::Compositor* compositor) { |
62 NOTIMPLEMENTED(); | 62 NOTIMPLEMENTED(); |
63 } | 63 } |
64 | 64 |
65 bool SurfaceContextFactory::DoesCreateTestContexts() { | 65 bool SurfaceContextFactory::DoesCreateTestContexts() { |
66 NOTIMPLEMENTED(); | |
67 return false; | 66 return false; |
68 } | 67 } |
69 | 68 |
70 uint32 SurfaceContextFactory::GetImageTextureTarget( | 69 uint32 SurfaceContextFactory::GetImageTextureTarget( |
71 gfx::GpuMemoryBuffer::Format format, | 70 gfx::GpuMemoryBuffer::Format format, |
72 gfx::GpuMemoryBuffer::Usage usage) { | 71 gfx::GpuMemoryBuffer::Usage usage) { |
73 // No GpuMemoryBuffer support, so just return GL_TEXTURE_2D. | 72 // No GpuMemoryBuffer support, so just return GL_TEXTURE_2D. |
74 return GL_TEXTURE_2D; | 73 return GL_TEXTURE_2D; |
75 } | 74 } |
76 | 75 |
77 cc::SharedBitmapManager* SurfaceContextFactory::GetSharedBitmapManager() { | 76 cc::SharedBitmapManager* SurfaceContextFactory::GetSharedBitmapManager() { |
78 NOTIMPLEMENTED(); | 77 NOTIMPLEMENTED(); |
79 return nullptr; | 78 return nullptr; |
80 } | 79 } |
81 | 80 |
82 gpu::GpuMemoryBufferManager* | 81 gpu::GpuMemoryBufferManager* |
83 SurfaceContextFactory::GetGpuMemoryBufferManager() { | 82 SurfaceContextFactory::GetGpuMemoryBufferManager() { |
84 NOTIMPLEMENTED(); | 83 return &gpu_memory_buffer_manager_; |
85 return nullptr; | |
86 } | 84 } |
87 | 85 |
88 cc::TaskGraphRunner* SurfaceContextFactory::GetTaskGraphRunner() { | 86 cc::TaskGraphRunner* SurfaceContextFactory::GetTaskGraphRunner() { |
89 NOTIMPLEMENTED(); | 87 return raster_thread_helper_.task_graph_runner(); |
90 return nullptr; | |
91 } | 88 } |
92 | 89 |
93 scoped_ptr<cc::SurfaceIdAllocator> | 90 scoped_ptr<cc::SurfaceIdAllocator> |
94 SurfaceContextFactory::CreateSurfaceIdAllocator() { | 91 SurfaceContextFactory::CreateSurfaceIdAllocator() { |
95 return make_scoped_ptr( | 92 return make_scoped_ptr( |
96 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); | 93 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); |
97 } | 94 } |
98 | 95 |
99 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor, | 96 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor, |
100 const gfx::Size& size) { | 97 const gfx::Size& size) { |
101 NOTIMPLEMENTED(); | 98 NOTIMPLEMENTED(); |
102 } | 99 } |
103 | 100 |
104 } // namespace mandoline | 101 } // namespace mandoline |
OLD | NEW |