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

Side by Side Diff: content/public/browser/android/compositor.h

Issue 10828356: Very basic Android browser-side compositing support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 (c) 2012 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_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_
7
8 #include "base/callback.h"
9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/gfx/size.h"
11
12 namespace WebKit {
13 class WebLayer;
14 }
15
16 namespace content {
17
18 // An interface for drawing to an embedder-supplied window surface.
19 class Compositor {
20 public:
21 Compositor() {}
22 virtual ~Compositor() {}
23
24 static Compositor* GetInstance();
25
26 virtual void SetRootLayer(const WebKit::WebLayer& root) = 0;
27 virtual void SetWindowBounds(const gfx::Size& size) = 0;
28 virtual void SetWindowSurface(ANativeWindow* window) = 0;
29 };
30
31 } // namespace content
32
33 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698