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.
5 #ifndef MOJO_AURA_CONTEXT_FACTORY_MOJO_H_
6 #define MOJO_AURA_CONTEXT_FACTORY_MOJO_H_
8 #include "ui/compositor/compositor.h"
12 class ContextFactoryMojo
: public ui::ContextFactory
{
15 virtual ~ContextFactoryMojo();
19 virtual scoped_ptr
<cc::OutputSurface
> CreateOutputSurface(
20 ui::Compositor
* compositor
,
21 bool software_fallback
) OVERRIDE
;
22 virtual scoped_refptr
<ui::Reflector
> CreateReflector(
23 ui::Compositor
* mirrored_compositor
,
24 ui::Layer
* mirroring_layer
) OVERRIDE
;
25 virtual void RemoveReflector(scoped_refptr
<ui::Reflector
> reflector
) OVERRIDE
;
26 virtual scoped_refptr
<cc::ContextProvider
> SharedMainThreadContextProvider()
28 virtual void RemoveCompositor(ui::Compositor
* compositor
) OVERRIDE
;
29 virtual bool DoesCreateTestContexts() OVERRIDE
;
30 virtual cc::SharedBitmapManager
* GetSharedBitmapManager() OVERRIDE
;
31 virtual base::MessageLoopProxy
* GetCompositorMessageLoop() OVERRIDE
;
33 scoped_ptr
<cc::SharedBitmapManager
> shared_bitmap_manager_
;
35 DISALLOW_COPY_AND_ASSIGN(ContextFactoryMojo
);
40 #endif // MOJO_AURA_CONTEXT_FACTORY_MOJO_H_