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

Unified Diff: content/public/browser/android/graphics_context.h

Issue 10823051: ContentShell rendering support on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address Ted's comments Created 8 years, 5 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/graphics_context.h
diff --git a/content/public/browser/android/graphics_context.h b/content/public/browser/android/graphics_context.h
new file mode 100644
index 0000000000000000000000000000000000000000..a8d828580c1fff2481922f789f00a9a223be4cbb
--- /dev/null
+++ b/content/public/browser/android/graphics_context.h
@@ -0,0 +1,31 @@
+// 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_GRAPHICS_CONTEXT_H_
+#define CONTENT_PUBLIC_BROWSER_ANDROID_GRAPHICS_CONTEXT_H_
+
+#include "ui/gfx/native_widget_types.h"
+
+struct ANativeWindow;
+
+namespace WebKit {
+class WebGraphicsContext3D;
+}
+
+namespace content {
+
+class GraphicsContext {
+ public:
+ virtual ~GraphicsContext() { }
+
+ // Create a UI graphics context that renders to the given surface.
+ static GraphicsContext* CreateForUI(ANativeWindow* ui_window);
+
+ virtual WebKit::WebGraphicsContext3D* GetContext3D() = 0;
+ virtual uint32 InsertSyncPoint() = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_ANDROID_GRAPHICS_CONTEXT_H_

Powered by Google App Engine
This is Rietveld 408576698