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

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

Issue 151103010: Revert of android: Migrate old content readback to use async readback (and delegated renderer) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index 725207c64f47659db0216a07a8132d920f39dc27..14a50be1120fb3303292312df419096a44305ded 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -701,17 +701,14 @@
static_cast<jint>(y_dip));
}
-void ContentViewCoreImpl::GetScaledContentBitmap(
+unsigned int ContentViewCoreImpl::GetScaledContentTexture(
float scale,
- gfx::Size* out_size,
- const base::Callback<void(bool, const SkBitmap&)>& result_callback) {
+ gfx::Size* out_size) {
RenderWidgetHostViewAndroid* view = GetRenderWidgetHostViewAndroid();
- if (!view) {
- result_callback.Run(false, SkBitmap());
- return;
- }
-
- view->GetScaledContentBitmap(scale, out_size, result_callback);
+ if (!view)
+ return 0;
+
+ return view->GetScaledContentTexture(scale, out_size);
}
void ContentViewCoreImpl::StartContentIntent(const GURL& content_url) {
« no previous file with comments | « content/browser/android/content_view_core_impl.h ('k') | content/browser/renderer_host/compositor_impl_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698