| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "mojo/aura/surface_context_factory.h" | |
| 6 | |
| 7 #include "cc/output/output_surface.h" | |
| 8 #include "cc/resources/shared_bitmap_manager.h" | |
| 9 #include "cc/surfaces/surface_id_allocator.h" | |
| 10 #include "mojo/public/interfaces/application/shell.mojom.h" | |
| 11 #include "mojo/services/view_manager/public/cpp/view.h" | |
| 12 #include "ui/compositor/reflector.h" | |
| 13 | |
| 14 namespace mojo { | |
| 15 | |
| 16 SurfaceContextFactory::SurfaceContextFactory(Shell* shell, View* view) | |
| 17 : surface_binding_(shell, view) { | |
| 18 } | |
| 19 | |
| 20 SurfaceContextFactory::~SurfaceContextFactory() { | |
| 21 } | |
| 22 | |
| 23 void SurfaceContextFactory::CreateOutputSurface( | |
| 24 base::WeakPtr<ui::Compositor> compositor, | |
| 25 bool software_fallback) { | |
| 26 compositor->SetOutputSurface(surface_binding_.CreateOutputSurface()); | |
| 27 } | |
| 28 | |
| 29 scoped_refptr<ui::Reflector> SurfaceContextFactory::CreateReflector( | |
| 30 ui::Compositor* mirroed_compositor, | |
| 31 ui::Layer* mirroring_layer) { | |
| 32 return new ui::Reflector(); | |
| 33 } | |
| 34 | |
| 35 void SurfaceContextFactory::RemoveReflector( | |
| 36 scoped_refptr<ui::Reflector> reflector) { | |
| 37 } | |
| 38 | |
| 39 scoped_refptr<cc::ContextProvider> | |
| 40 SurfaceContextFactory::SharedMainThreadContextProvider() { | |
| 41 return nullptr; | |
| 42 } | |
| 43 | |
| 44 void SurfaceContextFactory::RemoveCompositor(ui::Compositor* compositor) { | |
| 45 } | |
| 46 | |
| 47 bool SurfaceContextFactory::DoesCreateTestContexts() { | |
| 48 return false; | |
| 49 } | |
| 50 | |
| 51 cc::SharedBitmapManager* SurfaceContextFactory::GetSharedBitmapManager() { | |
| 52 return nullptr; | |
| 53 } | |
| 54 | |
| 55 gpu::GpuMemoryBufferManager* | |
| 56 SurfaceContextFactory::GetGpuMemoryBufferManager() { | |
| 57 return nullptr; | |
| 58 } | |
| 59 | |
| 60 base::MessageLoopProxy* SurfaceContextFactory::GetCompositorMessageLoop() { | |
| 61 return nullptr; | |
| 62 } | |
| 63 | |
| 64 scoped_ptr<cc::SurfaceIdAllocator> | |
| 65 SurfaceContextFactory::CreateSurfaceIdAllocator() { | |
| 66 return nullptr; | |
| 67 } | |
| 68 | |
| 69 } // namespace mojo | |
| OLD | NEW |