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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.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
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 a36596dd53b04abed61132ab7af1a074f6810f35..03752d9151f890ae0d667bc595e5447e52d94510 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -170,6 +170,14 @@ public class AwContents implements SmartClipProvider,
*/
public interface NativeGLDelegate {
/**
+ * Set the callback for when the getAwDrawGLFunction objects is safe to be deleted
+ * for this view. The callback forms a lifecycle between requestDrawGL (with canvas).
+ *
+ * @return false if not supported and this is a no-op; true otherwise.
+ */
+ boolean setDrawGLFunctionDetachedCallback(View view, Runnable callback);
+
+ /**
* Requests a callback on the native DrawGL method (see getAwDrawGLFunction)
* if called from within onDraw, |canvas| will be non-null and hardware accelerated.
* Otherwise, |canvas| will be null, and the container view itself will be hardware
@@ -2325,9 +2333,6 @@ public class AwContents implements SmartClipProvider,
mAwViewMethods.onDetachedFromWindow();
}
- public void onDrawGLFunctorDetached() {
- }
-
/**
* @see android.view.View#onWindowFocusChanged()
*/

Powered by Google App Engine
This is Rietveld 408576698