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

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

Issue 2282053003: Revert "Android: Fix some tab placeholder/thumbnail readbacks" (Closed)
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 e08b961c4f1e9c5881a337f43c35b0093bcb4237..14ac09ad2809bdc454a87932718a6ac504ba0621 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -498,8 +498,7 @@ bool RenderWidgetHostViewAndroid::HasFocus() const {
}
bool RenderWidgetHostViewAndroid::IsSurfaceAvailableForCopy() const {
- return !using_browser_compositor_ ||
- (HasValidFrame() && surface_factory_.get());
+ return !using_browser_compositor_ || HasValidFrame();
}
void RenderWidgetHostViewAndroid::Show() {
@@ -910,7 +909,7 @@ void RenderWidgetHostViewAndroid::CopyFromCompositingSurface(
if (!src_subrect_in_pixel.IsEmpty())
request->set_area(src_subrect_in_pixel);
- surface_factory_->RequestCopyOfSurface(surface_id_, std::move(request));
+ layer->RequestCopyOfOutput(std::move(request));
}
void RenderWidgetHostViewAndroid::CopyFromCompositingSurfaceToVideoFrame(
« 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