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

Unified Diff: mojo/services/view_manager/context_factory_impl.h

Issue 534843002: Convert view manager to surfaces with uploading shim in client lib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove overzealous shutdown check in cc/surfaces, add NON_EXPORTED_BASE for windows build, saturate… Created 6 years, 3 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
Index: mojo/services/view_manager/context_factory_impl.h
diff --git a/mojo/services/view_manager/context_factory_impl.h b/mojo/services/view_manager/context_factory_impl.h
deleted file mode 100644
index 0ef0fe3c2690376e7f23f2e5ca720eefd8d27c92..0000000000000000000000000000000000000000
--- a/mojo/services/view_manager/context_factory_impl.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2013 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 MOJO_SERVICES_VIEW_MANAGER_CONTEXT_FACTORY_IMPL_H_
-#define MOJO_SERVICES_VIEW_MANAGER_CONTEXT_FACTORY_IMPL_H_
-
-#include "mojo/public/cpp/system/core.h"
-#include "ui/compositor/compositor.h"
-
-namespace webkit {
-namespace gpu {
-class ContextProviderInProcess;
-}
-}
-
-namespace mojo {
-namespace service {
-
-// The default factory that creates in-process contexts.
-class ContextFactoryImpl : public ui::ContextFactory {
- public:
- explicit ContextFactoryImpl(ScopedMessagePipeHandle command_buffer_handle);
- virtual ~ContextFactoryImpl();
-
- // ContextFactory implementation
- virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(
- ui::Compositor* compositor, bool software_fallback) OVERRIDE;
-
- virtual scoped_refptr<ui::Reflector> CreateReflector(
- ui::Compositor* compositor,
- ui::Layer* layer) OVERRIDE;
- virtual void RemoveReflector(scoped_refptr<ui::Reflector> reflector) OVERRIDE;
-
- virtual scoped_refptr<cc::ContextProvider>
- SharedMainThreadContextProvider() OVERRIDE;
- virtual void RemoveCompositor(ui::Compositor* compositor) OVERRIDE;
- virtual bool DoesCreateTestContexts() OVERRIDE;
- virtual cc::SharedBitmapManager* GetSharedBitmapManager() OVERRIDE;
- virtual base::MessageLoopProxy* GetCompositorMessageLoop() OVERRIDE;
-
- private:
- scoped_refptr<webkit::gpu::ContextProviderInProcess>
- shared_main_thread_contexts_;
-
- ScopedMessagePipeHandle command_buffer_handle_;
-
- // TODO(sky): for debugging, remove.
- bool did_create_;
-
- DISALLOW_COPY_AND_ASSIGN(ContextFactoryImpl);
-};
-
-} // namespace service
-} // namespace mojo
-
-#endif // MOJO_SERVICES_VIEW_MANAGER_CONTEXT_FACTORY_IMPL_H_
« no previous file with comments | « mojo/services/view_manager/connection_manager.cc ('k') | mojo/services/view_manager/context_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698