Chromium Code Reviews| Index: ui/aura/mus/mus_context_factory.h |
| diff --git a/ui/aura/mus/mus_context_factory.h b/ui/aura/mus/mus_context_factory.h |
| index d71a51ae29a6a592fe9e5e36d5284ed7dbb0060b..a8517b990467d1684750684cef839e987cea5a91 100644 |
| --- a/ui/aura/mus/mus_context_factory.h |
| +++ b/ui/aura/mus/mus_context_factory.h |
| @@ -14,6 +14,10 @@ |
| #include "ui/aura/aura_export.h" |
| #include "ui/compositor/compositor.h" |
| +namespace gpu { |
| +class GpuChannelHost; |
| +} |
| + |
| namespace ui { |
| class Gpu; |
| } |
| @@ -27,6 +31,9 @@ class AURA_EXPORT MusContextFactory : public ui::ContextFactory { |
| ~MusContextFactory() override; |
| private: |
| + void OnEstablishedGpuChannel(base::WeakPtr<ui::Compositor> compositor, |
|
msw
2016/12/19 21:33:33
optional nit: comment?
sadrul
2016/12/20 03:53:20
Done.
|
| + scoped_refptr<gpu::GpuChannelHost> gpu_channel); |
|
msw
2016/12/19 21:33:33
nit: include base/memory/ref_counted.h and base/me
sadrul
2016/12/20 03:53:20
Done.
|
| + |
| // ContextFactory: |
| void CreateCompositorFrameSink( |
| base::WeakPtr<ui::Compositor> compositor) override; |
| @@ -42,6 +49,7 @@ class AURA_EXPORT MusContextFactory : public ui::ContextFactory { |
| ui::RasterThreadHelper raster_thread_helper_; |
| ui::Gpu* gpu_; |
| + base::WeakPtrFactory<MusContextFactory> weak_ptr_factory_; |
| DISALLOW_COPY_AND_ASSIGN(MusContextFactory); |
| }; |