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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 13135004: android_webview: changes to support Android GraphicBuffers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments in ui/gl/pixel_buffer.h Created 7 years, 9 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/java/src/org/chromium/android_webview/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index 638588125af5b8d97f105d437213e66199ef0c5d..a126ed65bf49d51139528c2dd5d3e56aad2c151c 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 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.
@@ -348,6 +348,10 @@ public class AwContents {
nativeSetAwDrawSWFunctionTable(functionTablePointer);
}
+ public static void setAwDrawGLFunctionTable(int functionTablePointer) {
+ nativeSetAwDrawGLFunctionTable(functionTablePointer);
+ }
+
public static int getAwDrawGLFunction() {
return nativeGetAwDrawGLFunction();
}
@@ -374,7 +378,7 @@ public class AwContents {
clip.right - clip.left, clip.bottom - clip.top)) {
Log.w(TAG, "Native DrawSW failed; clearing to background color.");
int c = mContentViewCore.getBackgroundColor();
- canvas.drawRGB(Color.red(c), Color.green(c), Color.blue(c));
+ canvas.drawRGB(Color.red Color.green Color.blue;
}
}
@@ -1325,6 +1329,7 @@ public class AwContents {
AwContentsClientBridge contentsClientBridge);
private static native void nativeDestroy(int nativeAwContents);
private static native void nativeSetAwDrawSWFunctionTable(int functionTablePointer);
+ private static native void nativeSetAwDrawGLFunctionTable(int functionTablePointer);
private static native int nativeGetAwDrawGLFunction();
private native int nativeGetWebContents(int nativeAwContents);

Powered by Google App Engine
This is Rietveld 408576698