Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: mojo/aura/surface_context_factory.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/aura/surface_binding.cc ('k') | mojo/aura/surface_context_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 #ifndef MOJO_AURA_SURFACE_CONTEXT_FACTORY_H_
6 #define MOJO_AURA_SURFACE_CONTEXT_FACTORY_H_
7
8 #include "mojo/aura/surface_binding.h"
9 #include "ui/compositor/compositor.h"
10
11 namespace mojo {
12 class Shell;
13 class View;
14
15 class SurfaceContextFactory : public ui::ContextFactory {
16 public:
17 SurfaceContextFactory(Shell* shell, View* view);
18 ~SurfaceContextFactory() override;
19
20 private:
21 // ContextFactory:
22 void CreateOutputSurface(base::WeakPtr<ui::Compositor> compositor,
23 bool software_fallback) override;
24 scoped_refptr<ui::Reflector> CreateReflector(
25 ui::Compositor* mirrored_compositor,
26 ui::Layer* mirroring_layer) override;
27 void RemoveReflector(scoped_refptr<ui::Reflector> reflector) override;
28 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
29 void RemoveCompositor(ui::Compositor* compositor) override;
30 bool DoesCreateTestContexts() override;
31 cc::SharedBitmapManager* GetSharedBitmapManager() override;
32 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
33 base::MessageLoopProxy* GetCompositorMessageLoop() override;
34 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override;
35
36 SurfaceBinding surface_binding_;
37
38 DISALLOW_COPY_AND_ASSIGN(SurfaceContextFactory);
39 };
40
41 } // namespace mojo
42
43 #endif // MOJO_AURA_SURFACE_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « mojo/aura/surface_binding.cc ('k') | mojo/aura/surface_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698