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

Side by Side Diff: ui/views/mus/surface_context_factory.h

Issue 2611773002: Removes code using mus client lib (Closed)
Patch Set: dont run on linux Created 3 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 | « ui/views/mus/screen_mus_unittest.cc ('k') | ui/views/mus/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 2015 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 UI_VIEWS_MUS_SURFACE_CONTEXT_FACTORY_H_
6 #define UI_VIEWS_MUS_SURFACE_CONTEXT_FACTORY_H_
7
8 #include <stdint.h>
9
10 #include "base/macros.h"
11 #include "cc/surfaces/surface_manager.h"
12 #include "services/ui/public/cpp/raster_thread_helper.h"
13 #include "services/ui/public/interfaces/window_tree.mojom.h"
14 #include "ui/compositor/compositor.h"
15 #include "ui/views/mus/mus_export.h"
16
17 namespace ui {
18 class Gpu;
19 }
20
21 namespace views {
22
23 class VIEWS_MUS_EXPORT SurfaceContextFactory : public ui::ContextFactory {
24 public:
25 explicit SurfaceContextFactory(ui::Gpu* gpu);
26 ~SurfaceContextFactory() override;
27
28 private:
29 // ContextFactory:
30 void CreateCompositorFrameSink(
31 base::WeakPtr<ui::Compositor> compositor) override;
32 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
33 void RemoveCompositor(ui::Compositor* compositor) override;
34 bool DoesCreateTestContexts() override;
35 uint32_t GetImageTextureTarget(gfx::BufferFormat format,
36 gfx::BufferUsage usage) override;
37 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
38 cc::TaskGraphRunner* GetTaskGraphRunner() override;
39 void AddObserver(ui::ContextFactoryObserver* observer) override {}
40 void RemoveObserver(ui::ContextFactoryObserver* observer) override {}
41
42 ui::RasterThreadHelper raster_thread_helper_;
43 ui::Gpu* gpu_;
44
45 DISALLOW_COPY_AND_ASSIGN(SurfaceContextFactory);
46 };
47
48 } // namespace views
49
50 #endif // UI_VIEWS_MUS_SURFACE_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/views/mus/screen_mus_unittest.cc ('k') | ui/views/mus/surface_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698