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

Unified Diff: content/common/gpu/client/gl_helper.cc

Issue 296493003: [Android WebView] Fix DevTools Screencast slowness (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: PS5 + changed discussed off-line Created 6 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 | « content/common/gpu/client/gl_helper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/gl_helper.cc
diff --git a/content/common/gpu/client/gl_helper.cc b/content/common/gpu/client/gl_helper.cc
index 4058d4f5c01da1600935df72ccca8e41688a1240..c61737bce38d9d8bd727adce27d32bcf958b1ef9 100644
--- a/content/common/gpu/client/gl_helper.cc
+++ b/content/common/gpu/client/gl_helper.cc
@@ -683,7 +683,8 @@ void GLHelper::CropScaleReadbackAndCleanTexture(
const gfx::Size& dst_size,
unsigned char* out,
const SkBitmap::Config config,
- const base::Callback<void(bool)>& callback) {
+ const base::Callback<void(bool)>& callback,
+ GLHelper::ScalerQuality quality) {
InitCopyTextToImpl();
copy_texture_to_impl_->CropScaleReadbackAndCleanTexture(
src_texture,
@@ -693,7 +694,7 @@ void GLHelper::CropScaleReadbackAndCleanTexture(
out,
config,
callback,
- GLHelper::SCALER_QUALITY_FAST);
+ quality);
}
void GLHelper::CropScaleReadbackAndCleanMailbox(
@@ -704,12 +705,14 @@ void GLHelper::CropScaleReadbackAndCleanMailbox(
const gfx::Size& dst_size,
unsigned char* out,
const SkBitmap::Config bitmap_config,
- const base::Callback<void(bool)>& callback) {
+ const base::Callback<void(bool)>& callback,
+ GLHelper::ScalerQuality quality) {
GLuint mailbox_texture = ConsumeMailboxToTexture(src_mailbox, sync_point);
CropScaleReadbackAndCleanTexture(
mailbox_texture, src_size, src_subrect, dst_size, out,
bitmap_config,
- callback);
+ callback,
+ quality);
gl_->DeleteTextures(1, &mailbox_texture);
}
« no previous file with comments | « content/common/gpu/client/gl_helper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698