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

Unified Diff: android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java

Issue 1870163002: aw: Expose setDrawGLFunctionDetachedCallback to AwContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwContents.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java
diff --git a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java
index 380792205e76fd475cf37c01d9cbfe4903d5a2c8..8f25c5d1535f61357278b57559e27445476b518e 100644
--- a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java
+++ b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java
@@ -1889,9 +1889,6 @@ class WebViewChromium implements WebViewProvider, WebViewProvider.ScrollDelegate
return;
}
- if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M && !"N".equals(Build.VERSION.CODENAME)) {
- mAwContents.onDrawGLFunctorDetached();
- }
mAwContents.onDetachedFromWindow();
}
@@ -2248,6 +2245,11 @@ class WebViewChromium implements WebViewProvider, WebViewProvider.ScrollDelegate
// AwContents.NativeGLDelegate implementation --------------------------------------
private class WebViewNativeGLDelegate implements AwContents.NativeGLDelegate {
@Override
+ public boolean setDrawGLFunctionDetachedCallback(View view, Runnable callback) {
+ return false; // Not supported yet.
+ }
+
+ @Override
public boolean requestDrawGL(Canvas canvas, boolean waitForCompletion, View containerView) {
if (mGLfunctor == null) {
mGLfunctor = new DrawGLFunctor(
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwContents.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698