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

Side by Side Diff: ash/mus/stub_context_factory.h

Issue 1676713002: ash/mash: Add a mus-client that sets up ash to provide the system ui for mash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix-cros-build Created 4 years, 10 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 | « ash/mus/shell_delegate_mus.cc ('k') | ash/mus/stub_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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef BLIMP_ENGINE_APP_UI_BLIMP_UI_CONTEXT_FACTORY_H_ 5 #ifndef ASH_MUS_STUB_CONTEXT_FACTORY_H_
6 #define BLIMP_ENGINE_APP_UI_BLIMP_UI_CONTEXT_FACTORY_H_ 6 #define ASH_MUS_STUB_CONTEXT_FACTORY_H_
7
8 #include <stdint.h>
9 7
10 #include "base/macros.h" 8 #include "base/macros.h"
11 #include "blimp/common/compositor/blimp_task_graph_runner.h" 9 #include "base/memory/scoped_ptr.h"
12 #include "ui/compositor/compositor.h" 10 #include "ui/compositor/compositor.h"
13 11
14 namespace blimp { 12 namespace cc {
15 namespace engine { 13 class SingleThreadTaskGraphRunner;
14 }
16 15
17 class BlimpUiContextFactory : public ui::ContextFactory { 16 namespace ash {
17 namespace sysui {
18
19 class StubContextFactory : public ui::ContextFactory {
18 public: 20 public:
19 BlimpUiContextFactory(); 21 StubContextFactory();
20 ~BlimpUiContextFactory() override; 22 ~StubContextFactory() override;
21 23
22 private: 24 private:
23 // ui::ContextFactory implementation. 25 // ui::ContextFactory implementation.
24 void CreateOutputSurface(base::WeakPtr<ui::Compositor> compositor) override; 26 void CreateOutputSurface(base::WeakPtr<ui::Compositor> compositor) override;
25 scoped_ptr<ui::Reflector> CreateReflector( 27 scoped_ptr<ui::Reflector> CreateReflector(
26 ui::Compositor* mirrored_compositor, 28 ui::Compositor* mirrored_compositor,
27 ui::Layer* mirroring_layer) override; 29 ui::Layer* mirroring_layer) override;
28 void RemoveReflector(ui::Reflector* reflector) override; 30 void RemoveReflector(ui::Reflector* reflector) override;
29 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override; 31 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
30 void RemoveCompositor(ui::Compositor* compositor) override; 32 void RemoveCompositor(ui::Compositor* compositor) override;
31 bool DoesCreateTestContexts() override; 33 bool DoesCreateTestContexts() override;
32 uint32_t GetImageTextureTarget(gfx::BufferFormat format, 34 uint32_t GetImageTextureTarget(gfx::BufferFormat format,
33 gfx::BufferUsage usage) override; 35 gfx::BufferUsage usage) override;
34 cc::SharedBitmapManager* GetSharedBitmapManager() override; 36 cc::SharedBitmapManager* GetSharedBitmapManager() override;
35 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 37 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
36 cc::TaskGraphRunner* GetTaskGraphRunner() override; 38 cc::TaskGraphRunner* GetTaskGraphRunner() override;
37 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override; 39 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override;
38 void ResizeDisplay(ui::Compositor* compositor, 40 void ResizeDisplay(ui::Compositor* compositor,
39 const gfx::Size& size) override; 41 const gfx::Size& size) override;
40 42
41 uint32_t next_surface_id_namespace_; 43 uint32_t next_surface_id_namespace_;
42 BlimpTaskGraphRunner task_graph_runner_; 44 scoped_ptr<cc::SingleThreadTaskGraphRunner> task_graph_runner_;
43 45
44 DISALLOW_COPY_AND_ASSIGN(BlimpUiContextFactory); 46 DISALLOW_COPY_AND_ASSIGN(StubContextFactory);
45 }; 47 };
46 48
47 } // namespace engine 49 } // namespace sysui
48 } // namespace blimp 50 } // namespace ash
49 51
50 #endif // BLIMP_ENGINE_APP_UI_BLIMP_UI_CONTEXT_FACTORY_H_ 52 #endif // ASH_MUS_STUB_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « ash/mus/shell_delegate_mus.cc ('k') | ash/mus/stub_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698