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

Unified Diff: mandoline/ui/aura/surface_context_factory.h

Issue 1123643007: Restore aura support from Mojo repo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mandoline/ui/aura/surface_binding.cc ('k') | mandoline/ui/aura/surface_context_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/aura/surface_context_factory.h
diff --git a/mandoline/ui/aura/surface_context_factory.h b/mandoline/ui/aura/surface_context_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..9eb3a20f074d17c7984249dbaebd4882e955457f
--- /dev/null
+++ b/mandoline/ui/aura/surface_context_factory.h
@@ -0,0 +1,48 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MANDOLINE_UI_AURA_SURFACE_CONTEXT_FACTORY_H_
+#define MANDOLINE_UI_AURA_SURFACE_CONTEXT_FACTORY_H_
+
+#include "mandoline/ui/aura/surface_binding.h"
+#include "ui/compositor/compositor.h"
+
+namespace mojo {
+class Shell;
+class View;
+}
+
+namespace mandoline {
+
+class SurfaceContextFactory : public ui::ContextFactory {
+ public:
+ SurfaceContextFactory(mojo::Shell* shell, mojo::View* view);
+ ~SurfaceContextFactory() override;
+
+ private:
+ // ContextFactory:
+ void CreateOutputSurface(base::WeakPtr<ui::Compositor> compositor) override;
+ scoped_ptr<ui::Reflector> CreateReflector(
+ ui::Compositor* mirrored_compositor,
+ ui::Layer* mirroring_layer) override;
+ void RemoveReflector(ui::Reflector* reflector) override;
+ scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
+ void RemoveCompositor(ui::Compositor* compositor) override;
+ bool DoesCreateTestContexts() override;
+ uint32 GetImageTextureTarget() override;
+ cc::SharedBitmapManager* GetSharedBitmapManager() override;
+ gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
+ cc::TaskGraphRunner* GetTaskGraphRunner() override;
+ scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override;
+ void ResizeDisplay(ui::Compositor* compositor,
+ const gfx::Size& size) override;
+
+ SurfaceBinding surface_binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(SurfaceContextFactory);
+};
+
+} // namespace mandoline
+
+#endif // MANDOLINE_UI_AURA_SURFACE_CONTEXT_FACTORY_H_
« no previous file with comments | « mandoline/ui/aura/surface_binding.cc ('k') | mandoline/ui/aura/surface_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698