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

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

Issue 1680213002: Start using deferred rendering for WebView on L. Base URL: https://chromium.googlesource.com/chromium/src.git@measure_copy
Patch Set: cleanup Created 4 years, 10 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 | « ui/gl/android/surface_texture.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/android/surface_texture.cc
diff --git a/ui/gl/android/surface_texture.cc b/ui/gl/android/surface_texture.cc
index 1c5b788c2bbba24ee16c76b82cde77c6c666d592..cb1f93f45ae353ecfd24891ed47f37faa8a29a72 100644
--- a/ui/gl/android/surface_texture.cc
+++ b/ui/gl/android/surface_texture.cc
@@ -47,6 +47,14 @@ void SurfaceTexture::SetFrameAvailableCallbackOnAnyThread(
reinterpret_cast<intptr_t>(new SurfaceTextureListener(callback, true)));
}
+void SurfaceTexture::SetFrameAvailableCallbackOnSeparateThread(
+ const base::Closure& callback) {
+ JNIEnv* env = base::android::AttachCurrentThread();
+ Java_SurfaceTexturePlatformWrapper_setFrameAvailableCallbackOnSeparateThread(
+ env, j_surface_texture_.obj(),
+ reinterpret_cast<intptr_t>(new SurfaceTextureListener(callback, true)));
+}
+
void SurfaceTexture::UpdateTexImage() {
JNIEnv* env = base::android::AttachCurrentThread();
Java_SurfaceTexturePlatformWrapper_updateTexImage(env,
« no previous file with comments | « ui/gl/android/surface_texture.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698