Chromium Code Reviews| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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(); | 66 NOTIMPLEMENTED(); |
| 67 return false; | 67 return false; |
| 68 } | 68 } |
| 69 | 69 |
| 70 uint32 SurfaceContextFactory::GetImageTextureTarget() { | 70 uint32 SurfaceContextFactory::GetMapImageTextureTarget() { |
| 71 return GL_TEXTURE_2D; | 71 return GL_TEXTURE_2D; |
| 72 } | 72 } |
| 73 | 73 |
| 74 uint32 SurfaceContextFactory::GetPersistentMapImageTextureTarget() { | |
|
reveman
2015/05/20 19:25:59
ditto
danakj
2015/05/20 20:50:43
ditto :)
| |
| 75 return GL_TEXTURE_2D; | |
| 76 } | |
| 77 | |
| 74 cc::SharedBitmapManager* SurfaceContextFactory::GetSharedBitmapManager() { | 78 cc::SharedBitmapManager* SurfaceContextFactory::GetSharedBitmapManager() { |
| 75 NOTIMPLEMENTED(); | 79 NOTIMPLEMENTED(); |
| 76 return nullptr; | 80 return nullptr; |
| 77 } | 81 } |
| 78 | 82 |
| 79 gpu::GpuMemoryBufferManager* | 83 gpu::GpuMemoryBufferManager* |
| 80 SurfaceContextFactory::GetGpuMemoryBufferManager() { | 84 SurfaceContextFactory::GetGpuMemoryBufferManager() { |
| 81 NOTIMPLEMENTED(); | 85 NOTIMPLEMENTED(); |
| 82 return nullptr; | 86 return nullptr; |
| 83 } | 87 } |
| 84 | 88 |
| 85 cc::TaskGraphRunner* SurfaceContextFactory::GetTaskGraphRunner() { | 89 cc::TaskGraphRunner* SurfaceContextFactory::GetTaskGraphRunner() { |
| 86 NOTIMPLEMENTED(); | 90 NOTIMPLEMENTED(); |
| 87 return nullptr; | 91 return nullptr; |
| 88 } | 92 } |
| 89 | 93 |
| 90 scoped_ptr<cc::SurfaceIdAllocator> | 94 scoped_ptr<cc::SurfaceIdAllocator> |
| 91 SurfaceContextFactory::CreateSurfaceIdAllocator() { | 95 SurfaceContextFactory::CreateSurfaceIdAllocator() { |
| 92 return make_scoped_ptr( | 96 return make_scoped_ptr( |
| 93 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); | 97 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); |
| 94 } | 98 } |
| 95 | 99 |
| 96 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor, | 100 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor, |
| 97 const gfx::Size& size) { | 101 const gfx::Size& size) { |
| 98 NOTIMPLEMENTED(); | 102 NOTIMPLEMENTED(); |
| 99 } | 103 } |
| 100 | 104 |
| 101 } // namespace mandoline | 105 } // namespace mandoline |
| OLD | NEW |