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

Side by Side Diff: content/renderer/android/synchronous_compositor_factory.h

Issue 16119003: Move SynchronousCompositor into content/browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_
6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_
7
8 namespace content {
9
10 // Decouples creation from usage of the parts needed for the synchonous
11 // compositor rendering path. In practice this is only used in single
12 // process mode (namely, for Android WebView) hence the implementation of
13 // this will be injected from the logical 'browser' side code.
14 class SynchronousCompositorFactory {
15 public:
16 // Must only be called once, e.g. on startup. Ownership of |instance| remains
17 // with the caller.
18 static void SetInstance(SynchronousCompositorFactory* instance);
19 static SynchronousCompositorFactory* GetInstance();
20 static bool HasInstance() { return GetInstance() != NULL; }
21
22 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurfaceForRenderView(
23 int view_id) = 0;
24
25 protected:
26 SynchronousCompositorFactory() {}
27 ~SynchronousCompositorFactory() {}
28 };
29
30 }
31
32 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698