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

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

Issue 2563783002: ui + mus: Split ContextFactory into ContextFactory(Client) and ContextFactoryPrivate (Closed)
Patch Set: Restore mash 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
« no previous file with comments | « ui/aura/mus/mus_context_factory.h ('k') | ui/aura/test/aura_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/mus_context_factory.cc
diff --git a/ui/aura/mus/mus_context_factory.cc b/ui/aura/mus/mus_context_factory.cc
index ea173115d2ad64a01e89f571fcdb3b921d2a8b4e..6188eb06e2c3375d19c43d6cd19d7bc2bd7700e4 100644
--- a/ui/aura/mus/mus_context_factory.cc
+++ b/ui/aura/mus/mus_context_factory.cc
@@ -9,25 +9,15 @@
#include "services/ui/public/cpp/gpu/gpu.h"
#include "ui/aura/mus/window_port_mus.h"
#include "ui/aura/window_tree_host.h"
-#include "ui/compositor/reflector.h"
#include "ui/gl/gl_bindings.h"
namespace aura {
namespace {
-class FakeReflector : public ui::Reflector {
- public:
- FakeReflector() {}
- ~FakeReflector() override {}
- void OnMirroringCompositorResized() override {}
- void AddMirroringLayer(ui::Layer* layer) override {}
- void RemoveMirroringLayer(ui::Layer* layer) override {}
-};
} // namespace
-MusContextFactory::MusContextFactory(ui::Gpu* gpu)
- : next_sink_id_(1u), gpu_(gpu) {}
+MusContextFactory::MusContextFactory(ui::Gpu* gpu) : gpu_(gpu) {}
MusContextFactory::~MusContextFactory() {}
@@ -45,17 +35,6 @@ void MusContextFactory::CreateCompositorFrameSink(
compositor->SetCompositorFrameSink(std::move(compositor_frame_sink));
}
-std::unique_ptr<ui::Reflector> MusContextFactory::CreateReflector(
- ui::Compositor* mirroed_compositor,
- ui::Layer* mirroring_layer) {
- // NOTIMPLEMENTED();
- return base::WrapUnique(new FakeReflector);
-}
-
-void MusContextFactory::RemoveReflector(ui::Reflector* reflector) {
- // NOTIMPLEMENTED();
-}
-
scoped_refptr<cc::ContextProvider>
MusContextFactory::SharedMainThreadContextProvider() {
// NOTIMPLEMENTED();
@@ -84,22 +63,4 @@ cc::TaskGraphRunner* MusContextFactory::GetTaskGraphRunner() {
return raster_thread_helper_.task_graph_runner();
}
-cc::FrameSinkId MusContextFactory::AllocateFrameSinkId() {
- return cc::FrameSinkId(0, next_sink_id_++);
-}
-
-cc::SurfaceManager* MusContextFactory::GetSurfaceManager() {
- return &surface_manager_;
-}
-
-void MusContextFactory::SetDisplayVisible(ui::Compositor* compositor,
- bool visible) {
- // TODO(fsamuel): display[compositor]->SetVisible(visible);
-}
-
-void MusContextFactory::ResizeDisplay(ui::Compositor* compositor,
- const gfx::Size& size) {
- // TODO(fsamuel): display[compositor]->Resize(size);
-}
-
} // namespace aura
« no previous file with comments | « ui/aura/mus/mus_context_factory.h ('k') | ui/aura/test/aura_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698