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

Unified Diff: content/renderer/android/synchronous_compositor_factory.h

Issue 1838853005: android: Remove in-process sync compositor code path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_in_proc_video
Patch Set: rebase Created 4 years, 8 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: content/renderer/android/synchronous_compositor_factory.h
diff --git a/content/renderer/android/synchronous_compositor_factory.h b/content/renderer/android/synchronous_compositor_factory.h
deleted file mode 100644
index 47ea588bc6dc9e0a5f54dfa66db5254d5724672d..0000000000000000000000000000000000000000
--- a/content/renderer/android/synchronous_compositor_factory.h
+++ /dev/null
@@ -1,65 +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 CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_
-#define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_
-
-#include <memory>
-
-#include "base/memory/ref_counted.h"
-#include "gpu/config/gpu_info.h"
-#include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
-
-namespace base {
-class SingleThreadTaskRunner;
-}
-
-namespace cc {
-class BeginFrameSource;
-class ContextProvider;
-class OutputSurface;
-}
-
-namespace content {
-
-class InputHandlerManagerClient;
-class SynchronousInputHandlerProxyClient;
-class FrameSwapMessageQueue;
-
-// Decouples creation from usage of the parts needed for the synchonous
-// compositor rendering path. In practice this is only used in single
-// process mode (namely, for Android WebView) hence the implementation of
-// this will be injected from the logical 'browser' side code.
-class SynchronousCompositorFactory {
- public:
- // Must only be called once, e.g. on startup. Ownership of |instance| remains
- // with the caller.
- static void SetInstance(SynchronousCompositorFactory* instance);
- static SynchronousCompositorFactory* GetInstance();
-
- virtual scoped_refptr<base::SingleThreadTaskRunner>
- GetCompositorTaskRunner() = 0;
- virtual std::unique_ptr<cc::OutputSurface> CreateOutputSurface(
- int routing_id,
- uint32_t output_surface_id,
- const scoped_refptr<FrameSwapMessageQueue>& frame_swap_message_queue,
- const scoped_refptr<cc::ContextProvider>& onscreen_context,
- const scoped_refptr<cc::ContextProvider>& worker_context) = 0;
-
- // The factory maintains ownership of the returned interface.
- virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0;
- virtual SynchronousInputHandlerProxyClient*
- GetSynchronousInputHandlerProxyClient() = 0;
-
- virtual std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
- int routing_id) = 0;
-
- protected:
- SynchronousCompositorFactory() {}
- virtual ~SynchronousCompositorFactory() {}
-};
-
-} // namespace content
-
-#endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/renderer/android/synchronous_compositor_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698