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

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

Issue 2875753002: Implement aura::WindowPortMus::CreateCompositorFrameSink() (Closed)
Patch Set: WIP 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
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/surfaces/surface_manager.h" 14 #include "cc/surfaces/surface_manager.h"
14 #include "services/ui/public/cpp/raster_thread_helper.h" 15 #include "services/ui/public/cpp/raster_thread_helper.h"
15 #include "services/ui/public/interfaces/window_tree.mojom.h" 16 #include "services/ui/public/interfaces/window_tree.mojom.h"
16 #include "ui/aura/aura_export.h" 17 #include "ui/aura/aura_export.h"
17 #include "ui/compositor/compositor.h" 18 #include "ui/compositor/compositor.h"
18 19
19 namespace gpu { 20 namespace gpu {
20 class GpuChannelHost; 21 class GpuChannelHost;
21 } 22 }
22 23
(...skipping 26 matching lines...) Expand all
49 double GetRefreshRate() const override; 50 double GetRefreshRate() const override;
50 uint32_t GetImageTextureTarget(gfx::BufferFormat format, 51 uint32_t GetImageTextureTarget(gfx::BufferFormat format,
51 gfx::BufferUsage usage) override; 52 gfx::BufferUsage usage) override;
52 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 53 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
53 cc::TaskGraphRunner* GetTaskGraphRunner() override; 54 cc::TaskGraphRunner* GetTaskGraphRunner() 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_;
60 scoped_refptr<cc::ContextProvider> shared_main_thread_context_provider_;
61
59 base::WeakPtrFactory<MusContextFactory> weak_ptr_factory_; 62 base::WeakPtrFactory<MusContextFactory> weak_ptr_factory_;
60 63
61 DISALLOW_COPY_AND_ASSIGN(MusContextFactory); 64 DISALLOW_COPY_AND_ASSIGN(MusContextFactory);
62 }; 65 };
63 66
64 } // namespace aura 67 } // namespace aura
65 68
66 #endif // UI_AURA_MUS_MUS_CONTEXT_FACTORY_H_ 69 #endif // UI_AURA_MUS_MUS_CONTEXT_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698