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

Unified Diff: ui/aura/mus/mus_context_factory.h

Issue 2586323002: mus: Use ui::ContextProviderCommandBuffer. (Closed)
Patch Set: async 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 side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698