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

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

Issue 11234008: Enable texture readback support for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 2 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/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 7db4c5d42dab367688fa9906353760a87d209843..91473775b70534f14188f4fdb9a9d9f28f5a37fc 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -675,12 +675,12 @@ void RenderWidgetHostViewAura::CopyFromCompositingSurface(
src_subrect_in_gl.set_y(GetViewBounds().height() - src_subrect.bottom());
gfx::Rect src_subrect_in_pixel = ConvertRectToPixel(this, src_subrect_in_gl);
- gl_helper->CopyTextureTo(container->PrepareTexture(),
- container->size(),
- src_subrect_in_pixel,
- dst_size_in_pixel,
- addr,
- wrapper_callback);
+ gl_helper->CropScaleReadbackAndCleanTexture(container->PrepareTexture(),
+ container->size(),
+ src_subrect_in_pixel,
+ dst_size_in_pixel,
+ addr,
+ wrapper_callback);
}
void RenderWidgetHostViewAura::OnAcceleratedCompositingStateChange() {
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | content/common/gpu/client/gl_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698