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

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

Issue 88033002: Add RGB565 Texture readback support in gl_helper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch for RGB565 format texture readback in gl_helper Created 7 years 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 dddc7b639b5c44ba404c6cb11d634b56bdd9bbf5..4a5646171cab769ab759a97b3fbde18b579a5841 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1810,7 +1810,9 @@ void RenderWidgetHostViewAura::CopyFromCompositingSurfaceHasResult(
}
if (result->HasTexture()) {
- PrepareTextureCopyOutputResult(dst_size_in_pixel, callback, result.Pass());
+ PrepareTextureCopyOutputResult(dst_size_in_pixel, false,
+ callback,
+ result.Pass());
return;
}
@@ -1832,6 +1834,7 @@ static void CopyFromCompositingSurfaceFinished(
// static
void RenderWidgetHostViewAura::PrepareTextureCopyOutputResult(
const gfx::Size& dst_size_in_pixel,
+ bool readback_config_rgb565,
const base::Callback<void(bool, const SkBitmap&)>& callback,
scoped_ptr<cc::CopyOutputResult> result) {
base::ScopedClosureRunner scoped_callback_runner(
@@ -1872,6 +1875,7 @@ void RenderWidgetHostViewAura::PrepareTextureCopyOutputResult(
result->size(),
gfx::Rect(result->size()),
dst_size_in_pixel,
+ readback_config_rgb565,
pixels,
base::Bind(&CopyFromCompositingSurfaceFinished,
callback,

Powered by Google App Engine
This is Rietveld 408576698