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

Unified 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: comments, rebase 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/android/compositor.h
diff --git a/content/public/browser/android/compositor.h b/content/public/browser/android/compositor.h
new file mode 100644
index 0000000000000000000000000000000000000000..67fe87a8993fbe55034b51dcbeb2d680f0c72913
--- /dev/null
+++ b/content/public/browser/android/compositor.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2012 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_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_
+#define CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_
+
+#include "base/callback.h"
+#include "ui/gfx/native_widget_types.h"
+#include "ui/gfx/size.h"
+
+namespace WebKit {
+class WebLayer;
+}
+
+namespace content {
+
+// An interface to the browser-side compositor.
+class Compositor {
+ public:
+ Compositor() {}
+ virtual ~Compositor() {}
+
+ static Compositor* GetInstance();
+
+ virtual void SetRootLayer(const WebKit::WebLayer& root) = 0;
+ virtual void SetWindowBounds(const gfx::Size& size) = 0;
+ virtual void SetWindowSurface(ANativeWindow* window) = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_

Powered by Google App Engine
This is Rietveld 408576698