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

Side by Side Diff: ui/aura/mus/mus_context_factory.h

Issue 2563783002: ui + mus: Split ContextFactory into ContextFactory(Client) and ContextFactoryPrivate (Closed)
Patch Set: Restore mash Created 4 years 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 | « ui/aura/env.cc ('k') | ui/aura/mus/mus_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 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 #ifndef UI_AURA_MUS_MUS_CONTEXT_FACTORY_H_ 5 #ifndef UI_AURA_MUS_MUS_CONTEXT_FACTORY_H_
6 #define UI_AURA_MUS_MUS_CONTEXT_FACTORY_H_ 6 #define UI_AURA_MUS_MUS_CONTEXT_FACTORY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 12 matching lines...) Expand all
23 // ContextFactory implementation that can be used with Mus. 23 // ContextFactory implementation that can be used with Mus.
24 class AURA_EXPORT MusContextFactory : public ui::ContextFactory { 24 class AURA_EXPORT MusContextFactory : public ui::ContextFactory {
25 public: 25 public:
26 explicit MusContextFactory(ui::Gpu* gpu); 26 explicit MusContextFactory(ui::Gpu* gpu);
27 ~MusContextFactory() override; 27 ~MusContextFactory() override;
28 28
29 private: 29 private:
30 // ContextFactory: 30 // ContextFactory:
31 void CreateCompositorFrameSink( 31 void CreateCompositorFrameSink(
32 base::WeakPtr<ui::Compositor> compositor) override; 32 base::WeakPtr<ui::Compositor> compositor) override;
33 std::unique_ptr<ui::Reflector> CreateReflector(
34 ui::Compositor* mirrored_compositor,
35 ui::Layer* mirroring_layer) override;
36 void RemoveReflector(ui::Reflector* reflector) override;
37 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override; 33 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
38 void RemoveCompositor(ui::Compositor* compositor) override; 34 void RemoveCompositor(ui::Compositor* compositor) override;
39 bool DoesCreateTestContexts() override; 35 bool DoesCreateTestContexts() override;
40 uint32_t GetImageTextureTarget(gfx::BufferFormat format, 36 uint32_t GetImageTextureTarget(gfx::BufferFormat format,
41 gfx::BufferUsage usage) override; 37 gfx::BufferUsage usage) override;
42 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 38 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
43 cc::TaskGraphRunner* GetTaskGraphRunner() override; 39 cc::TaskGraphRunner* GetTaskGraphRunner() override;
44 cc::FrameSinkId AllocateFrameSinkId() override;
45 cc::SurfaceManager* GetSurfaceManager() override;
46 void SetDisplayVisible(ui::Compositor* compositor, bool visible) override;
47 void ResizeDisplay(ui::Compositor* compositor,
48 const gfx::Size& size) override;
49 void SetDisplayColorSpace(ui::Compositor* compositor,
50 const gfx::ColorSpace& color_space) override {}
51 void SetAuthoritativeVSyncInterval(ui::Compositor* compositor,
52 base::TimeDelta interval) override {}
53 void SetDisplayVSyncParameters(ui::Compositor* compositor,
54 base::TimeTicks timebase,
55 base::TimeDelta interval) override {}
56 void SetOutputIsSecure(ui::Compositor* compositor, bool secure) override {}
57 void AddObserver(ui::ContextFactoryObserver* observer) override {} 40 void AddObserver(ui::ContextFactoryObserver* observer) override {}
58 void RemoveObserver(ui::ContextFactoryObserver* observer) override {} 41 void RemoveObserver(ui::ContextFactoryObserver* observer) override {}
59 42
60 cc::SurfaceManager surface_manager_;
61 uint32_t next_sink_id_;
62 ui::RasterThreadHelper raster_thread_helper_; 43 ui::RasterThreadHelper raster_thread_helper_;
63 ui::Gpu* gpu_; 44 ui::Gpu* gpu_;
64 45
65 DISALLOW_COPY_AND_ASSIGN(MusContextFactory); 46 DISALLOW_COPY_AND_ASSIGN(MusContextFactory);
66 }; 47 };
67 48
68 } // namespace aura 49 } // namespace aura
69 50
70 #endif // UI_AURA_MUS_MUS_CONTEXT_FACTORY_H_ 51 #endif // UI_AURA_MUS_MUS_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/aura/env.cc ('k') | ui/aura/mus/mus_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698