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); |
} |