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

Unified Diff: ui/views/mus/surface_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/views/mus/surface_context_factory.h ('k') | ui/views/test/scoped_views_test_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/surface_context_factory.cc
diff --git a/ui/views/mus/surface_context_factory.cc b/ui/views/mus/surface_context_factory.cc
index 54b9f124a3abdb672858932836d168e2e6f82633..4b55ac1ed06b34bf4a7f4340616ec67d03c0c356 100644
--- a/ui/views/mus/surface_context_factory.cc
+++ b/ui/views/mus/surface_context_factory.cc
@@ -16,21 +16,8 @@
#include "ui/views/mus/native_widget_mus.h"
namespace views {
-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
-
-SurfaceContextFactory::SurfaceContextFactory(ui::Gpu* gpu)
- : next_sink_id_(1u), gpu_(gpu) {}
+SurfaceContextFactory::SurfaceContextFactory(ui::Gpu* gpu) : gpu_(gpu) {}
SurfaceContextFactory::~SurfaceContextFactory() {}
@@ -47,17 +34,6 @@ void SurfaceContextFactory::CreateCompositorFrameSink(
compositor->SetCompositorFrameSink(std::move(compositor_frame_sink));
}
-std::unique_ptr<ui::Reflector> SurfaceContextFactory::CreateReflector(
- ui::Compositor* mirroed_compositor,
- ui::Layer* mirroring_layer) {
- // NOTIMPLEMENTED();
- return base::WrapUnique(new FakeReflector);
-}
-
-void SurfaceContextFactory::RemoveReflector(ui::Reflector* reflector) {
- // NOTIMPLEMENTED();
-}
-
scoped_refptr<cc::ContextProvider>
SurfaceContextFactory::SharedMainThreadContextProvider() {
// NOTIMPLEMENTED();
@@ -87,22 +63,4 @@ cc::TaskGraphRunner* SurfaceContextFactory::GetTaskGraphRunner() {
return raster_thread_helper_.task_graph_runner();
}
-cc::FrameSinkId SurfaceContextFactory::AllocateFrameSinkId() {
- return cc::FrameSinkId(0, next_sink_id_++);
-}
-
-cc::SurfaceManager* SurfaceContextFactory::GetSurfaceManager() {
- return &surface_manager_;
-}
-
-void SurfaceContextFactory::SetDisplayVisible(ui::Compositor* compositor,
- bool visible) {
- // TODO(fsamuel): display[compositor]->SetVisible(visible);
-}
-
-void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor,
- const gfx::Size& size) {
- // TODO(fsamuel): display[compositor]->Resize(size);
-}
-
} // namespace views
« no previous file with comments | « ui/views/mus/surface_context_factory.h ('k') | ui/views/test/scoped_views_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698