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

Unified Diff: ui/gl/android/surface_texture.h

Issue 2095873005: Add SurfaceTexture::release and call it from AVDA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: ui/gl/android/surface_texture.h
diff --git a/ui/gl/android/surface_texture.h b/ui/gl/android/surface_texture.h
index 8484b73d649aa989229840dea7b1faeb51b242b3..e55316b23553dac36e01bd5a40f083fdce65c373 100644
--- a/ui/gl/android/surface_texture.h
+++ b/ui/gl/android/surface_texture.h
@@ -57,6 +57,11 @@ class GL_EXPORT SurfaceTexture
// by calling ANativeWindow_release().
ANativeWindow* CreateSurface();
+ // Release the SurfaceTexture back buffers. The SurfaceTexture is no longer
+ // usable after calling this. Note that this is not called 'Release', like
+ // the android API, because scoped_refptr<> calls that quite a bit.
+ void ReleaseSurfaceTexture();
+
const base::android::JavaRef<jobject>& j_surface_texture() const {
return j_surface_texture_;
}

Powered by Google App Engine
This is Rietveld 408576698