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

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

Issue 2890453002: Implement MusContextFactory::SharedMainThreadContextProvider() (Closed)
Patch Set: Address review issues Created 3 years, 7 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 | « no previous file | 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"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "cc/output/context_provider.h"
13 #include "cc/output/renderer_settings.h" 14 #include "cc/output/renderer_settings.h"
14 #include "cc/surfaces/surface_manager.h" 15 #include "cc/surfaces/surface_manager.h"
15 #include "services/ui/public/cpp/raster_thread_helper.h" 16 #include "services/ui/public/cpp/raster_thread_helper.h"
16 #include "services/ui/public/interfaces/window_tree.mojom.h" 17 #include "services/ui/public/interfaces/window_tree.mojom.h"
17 #include "ui/aura/aura_export.h" 18 #include "ui/aura/aura_export.h"
18 #include "ui/compositor/compositor.h" 19 #include "ui/compositor/compositor.h"
19 20
20 namespace gpu { 21 namespace gpu {
21 class GpuChannelHost; 22 class GpuChannelHost;
22 } 23 }
(...skipping 27 matching lines...) Expand all
50 double GetRefreshRate() const override; 51 double GetRefreshRate() const override;
51 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 52 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
52 cc::TaskGraphRunner* GetTaskGraphRunner() override; 53 cc::TaskGraphRunner* GetTaskGraphRunner() override;
53 const cc::RendererSettings& GetRendererSettings() const override; 54 const cc::RendererSettings& GetRendererSettings() const override;
54 void AddObserver(ui::ContextFactoryObserver* observer) override {} 55 void AddObserver(ui::ContextFactoryObserver* observer) override {}
55 void RemoveObserver(ui::ContextFactoryObserver* observer) override {} 56 void RemoveObserver(ui::ContextFactoryObserver* observer) override {}
56 57
57 ui::RasterThreadHelper raster_thread_helper_; 58 ui::RasterThreadHelper raster_thread_helper_;
58 ui::Gpu* gpu_; 59 ui::Gpu* gpu_;
59 const cc::RendererSettings renderer_settings_; 60 const cc::RendererSettings renderer_settings_;
61 scoped_refptr<cc::ContextProvider> shared_main_thread_context_provider_;
62
60 base::WeakPtrFactory<MusContextFactory> weak_ptr_factory_; 63 base::WeakPtrFactory<MusContextFactory> weak_ptr_factory_;
61 64
62 DISALLOW_COPY_AND_ASSIGN(MusContextFactory); 65 DISALLOW_COPY_AND_ASSIGN(MusContextFactory);
63 }; 66 };
64 67
65 } // namespace aura 68 } // namespace aura
66 69
67 #endif // UI_AURA_MUS_MUS_CONTEXT_FACTORY_H_ 70 #endif // UI_AURA_MUS_MUS_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/mus/mus_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698