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

Unified Diff: android_webview/test/shell/src/org/chromium/android_webview/shell/DrawGL.java

Issue 414503004: android: Use hw acceleration in android_webview_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: android_webview/test/shell/src/org/chromium/android_webview/shell/DrawGL.java
diff --git a/android_webview/test/shell/src/org/chromium/android_webview/shell/DrawGL.java b/android_webview/test/shell/src/org/chromium/android_webview/shell/DrawGL.java
new file mode 100644
index 0000000000000000000000000000000000000000..ee0d3952014c80b8bb192a51ef612b4b7638978a
--- /dev/null
+++ b/android_webview/test/shell/src/org/chromium/android_webview/shell/DrawGL.java
@@ -0,0 +1,18 @@
+// Copyright 2014 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.
+
+package org.chromium.android_webview.shell;
+
+/**
+ * Provides an entry point to the native draw functor.
+ */
+public class DrawGL {
+ public static void drawGL(long drawGL, long viewContext, int width, int height,
+ int scrollX, int scrollY, int mode) {
+ nativeDrawGL(drawGL, viewContext, width, height, scrollX, scrollY, mode);
+ }
+
+ private static native void nativeDrawGL(long drawGL, long viewContext,
+ int width, int height, int scrollX, int scrollY, int mode);
+}

Powered by Google App Engine
This is Rietveld 408576698