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

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

Issue 2241633002: Android: Don't hold frame lock during readback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tn1
Patch Set: Created 4 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 2a626c8772c430470e9fc8279bd69058aa07ca40..1ebe3e4578f601c70cde4771afab8e573a1a22c0 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -907,9 +907,6 @@ void RenderWidgetHostViewAndroid::CopyFromCompositingSurface(
if (!src_subrect_in_pixel.IsEmpty())
request->set_area(src_subrect_in_pixel);
- // Make sure the current frame doesn't get deleted until we fulfill the
- // request.
- LockCompositingSurface();
surface_factory_->RequestCopyOfSurface(surface_id_, std::move(request));
}
@@ -1893,8 +1890,6 @@ void RenderWidgetHostViewAndroid::PrepareTextureCopyOutputResult(
TRACE_EVENT0("cc",
"RenderWidgetHostViewAndroid::PrepareTextureCopyOutputResult");
readback_layer->RemoveFromParent();
- if (rwhva)
- rwhva->UnlockCompositingSurface();
if (!result->HasTexture() || result->IsEmpty() || result->size().IsEmpty())
return;
cc::TextureMailbox texture_mailbox;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698