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

Unified Diff: ash/mus/stub_context_factory.cc

Issue 1683853003: Revert of ash/mash: Add a mus-client that sets up ash to provide the system ui for mash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « ash/mus/stub_context_factory.h ('k') | ash/mus/sysui_application.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/stub_context_factory.cc
diff --git a/ash/mus/stub_context_factory.cc b/ash/mus/stub_context_factory.cc
deleted file mode 100644
index 199842206b7eff1528a802aed1cfc05319c18265..0000000000000000000000000000000000000000
--- a/ash/mus/stub_context_factory.cc
+++ /dev/null
@@ -1,83 +0,0 @@
-// Copyright 2016 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.
-
-#include "ash/mus/stub_context_factory.h"
-
-#include "cc/output/context_provider.h"
-#include "cc/raster/single_thread_task_graph_runner.h"
-#include "cc/surfaces/surface_id_allocator.h"
-#include "third_party/khronos/GLES2/gl2.h"
-#include "ui/compositor/reflector.h"
-
-namespace ash {
-namespace sysui {
-
-namespace {
-
-class StubTaskGraphRunner : public cc::SingleThreadTaskGraphRunner {
- public:
- StubTaskGraphRunner() {
- Start("CompositorTileWorker1", base::SimpleThread::Options());
- }
- ~StubTaskGraphRunner() override {}
-};
-
-} // namespace
-
-StubContextFactory::StubContextFactory()
- : next_surface_id_namespace_(1u),
- task_graph_runner_(new StubTaskGraphRunner) {}
-
-StubContextFactory::~StubContextFactory() {}
-
-void StubContextFactory::CreateOutputSurface(
- base::WeakPtr<ui::Compositor> compositor) {}
-
-scoped_ptr<ui::Reflector> StubContextFactory::CreateReflector(
- ui::Compositor* mirrored_compositor,
- ui::Layer* mirroring_layer) {
- return nullptr;
-}
-
-void StubContextFactory::RemoveReflector(ui::Reflector* reflector) {}
-
-scoped_refptr<cc::ContextProvider>
-StubContextFactory::SharedMainThreadContextProvider() {
- return nullptr;
-}
-
-void StubContextFactory::RemoveCompositor(ui::Compositor* compositor) {}
-
-bool StubContextFactory::DoesCreateTestContexts() {
- return false;
-}
-
-uint32_t StubContextFactory::GetImageTextureTarget(gfx::BufferFormat format,
- gfx::BufferUsage usage) {
- return GL_TEXTURE_2D;
-}
-
-cc::SharedBitmapManager* StubContextFactory::GetSharedBitmapManager() {
- return nullptr;
-}
-
-gpu::GpuMemoryBufferManager* StubContextFactory::GetGpuMemoryBufferManager() {
- return nullptr;
-}
-
-cc::TaskGraphRunner* StubContextFactory::GetTaskGraphRunner() {
- return task_graph_runner_.get();
-}
-
-scoped_ptr<cc::SurfaceIdAllocator>
-StubContextFactory::CreateSurfaceIdAllocator() {
- return make_scoped_ptr(
- new cc::SurfaceIdAllocator(next_surface_id_namespace_++));
-}
-
-void StubContextFactory::ResizeDisplay(ui::Compositor* compositor,
- const gfx::Size& size) {}
-
-} // namespace sysui
-} // namespace ash
« no previous file with comments | « ash/mus/stub_context_factory.h ('k') | ash/mus/sysui_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698