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 "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/mus/public/cpp/window.h" | 10 #include "components/mus/public/cpp/window.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 return false; | 66 return false; |
67 } | 67 } |
68 | 68 |
69 uint32 SurfaceContextFactory::GetImageTextureTarget(gfx::BufferFormat format, | 69 uint32_t SurfaceContextFactory::GetImageTextureTarget(gfx::BufferFormat format, |
70 gfx::BufferUsage usage) { | 70 gfx::BufferUsage usage) { |
71 // No GpuMemoryBuffer support, so just return GL_TEXTURE_2D. | 71 // No GpuMemoryBuffer support, so just return GL_TEXTURE_2D. |
72 return GL_TEXTURE_2D; | 72 return GL_TEXTURE_2D; |
73 } | 73 } |
74 | 74 |
75 cc::SharedBitmapManager* SurfaceContextFactory::GetSharedBitmapManager() { | 75 cc::SharedBitmapManager* SurfaceContextFactory::GetSharedBitmapManager() { |
76 // NOTIMPLEMENTED(); | 76 // NOTIMPLEMENTED(); |
77 return nullptr; | 77 return nullptr; |
78 } | 78 } |
79 | 79 |
80 gpu::GpuMemoryBufferManager* | 80 gpu::GpuMemoryBufferManager* |
(...skipping 10 matching lines...) Expand all Loading... |
91 return make_scoped_ptr( | 91 return make_scoped_ptr( |
92 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); | 92 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); |
93 } | 93 } |
94 | 94 |
95 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor, | 95 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor, |
96 const gfx::Size& size) { | 96 const gfx::Size& size) { |
97 // NOTIMPLEMENTED(); | 97 // NOTIMPLEMENTED(); |
98 } | 98 } |
99 | 99 |
100 } // namespace views | 100 } // namespace views |
OLD | NEW |