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

Unified Diff: content/browser/renderer_host/surface_texture_transport_client_android.cc

Issue 12038095: Android webview fix gpu crashes after destroy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unneeded changes. Created 7 years, 11 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 | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | ui/gl/gl_surface_egl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/surface_texture_transport_client_android.cc
diff --git a/content/browser/renderer_host/surface_texture_transport_client_android.cc b/content/browser/renderer_host/surface_texture_transport_client_android.cc
index 8c2b8d34166603fce761ad12e96f684ff5d4cdae..48d1ec90c9ae7448e1593fb8c11b753c556ea7dd 100644
--- a/content/browser/renderer_host/surface_texture_transport_client_android.cc
+++ b/content/browser/renderer_host/surface_texture_transport_client_android.cc
@@ -51,8 +51,10 @@ scoped_refptr<cc::Layer> SurfaceTextureTransportClient::Initialize() {
gfx::GLSurfaceHandle
SurfaceTextureTransportClient::GetCompositingSurface(int surface_id) {
DCHECK(surface_id);
- if (!window_)
+ if (!window_) {
window_ = surface_texture_->CreateSurface();
+ ANativeWindow_acquire(window_);
no sievers 2013/01/28 19:46:15 Now we are leaking this extra ref. Note that Creat
boliu 2013/01/28 20:47:09 GpuSurfaceTracker is not an android only class. Is
+ }
GpuSurfaceTracker::Get()->SetNativeWidget(surface_id, window_);
return gfx::GLSurfaceHandle(gfx::kDummyPluginWindow, false);
« no previous file with comments | « no previous file | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | ui/gl/gl_surface_egl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698