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

Unified Diff: content/browser/android/content_view_render_view.cc

Issue 12390077: Android: Support GPU process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: content/browser/android/content_view_render_view.cc
diff --git a/content/browser/android/content_view_render_view.cc b/content/browser/android/content_view_render_view.cc
index 9e06ee0925967d8e3f22ed628de84f78f5741073..72424fa43d48f66c4259d903285484c7bd7c3da5 100644
--- a/content/browser/android/content_view_render_view.cc
+++ b/content/browser/android/content_view_render_view.cc
@@ -60,12 +60,7 @@ void ContentViewRenderView::SetCurrentContentView(
void ContentViewRenderView::SurfaceCreated(
JNIEnv* env, jobject obj, jobject jsurface) {
InitCompositor();
- ANativeWindow* native_window = ANativeWindow_fromSurface(env, jsurface);
- if (!native_window)
- return;
-
- compositor_->SetWindowSurface(native_window);
- ANativeWindow_release(native_window);
+ compositor_->SetSurface(jsurface);
}
void ContentViewRenderView::SurfaceDestroyed(JNIEnv* env, jobject obj) {

Powered by Google App Engine
This is Rietveld 408576698