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

Unified Diff: chrome/browser/android/compositor/tab_content_manager.cc

Issue 2021003002: LockCompositingSurface to make sure frame is not evicted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/compositor/tab_content_manager.cc
diff --git a/chrome/browser/android/compositor/tab_content_manager.cc b/chrome/browser/android/compositor/tab_content_manager.cc
index 8a8e6832beca51e5ab810a90401acb9ea96408de..df810095174c07a2559b9178577d6536a06a1b1a 100644
--- a/chrome/browser/android/compositor/tab_content_manager.cc
+++ b/chrome/browser/android/compositor/tab_content_manager.cc
@@ -82,7 +82,6 @@ class TabContentManager::TabReadbackRequest {
content::RenderWidgetHost* rwh = view->GetWebContents()
->GetRenderViewHost()
->GetWidget();
- rwh->LockBackingStore();
SkColorType color_type = kN32_SkColorType;
gfx::Rect src_rect = rwh->GetView()->GetViewBounds();
@@ -94,19 +93,6 @@ class TabContentManager::TabReadbackRequest {
void OnFinishGetTabThumbnailBitmap(const SkBitmap& bitmap,
content::ReadbackResponse response) {
DCHECK(!j_content_view_core_.is_null());
- JNIEnv* env = base::android::AttachCurrentThread();
- content::ContentViewCore* view =
- content::ContentViewCore::GetNativeContentViewCore(
- env, j_content_view_core_.obj());
-
- if (view) {
- DCHECK(view->GetWebContents());
- view->GetWebContents()
- ->GetRenderViewHost()
- ->GetWidget()
- ->UnlockBackingStore();
- }
-
if (response != content::READBACK_SUCCESS || drop_after_readback_) {
end_callback_.Run(0.f, SkBitmap());
return;
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698