| Index: content/browser/compositor/delegated_frame_host.cc
|
| diff --git a/content/browser/compositor/delegated_frame_host.cc b/content/browser/compositor/delegated_frame_host.cc
|
| index 348e436946f935edc45ce61480ebe41ba4f2da83..024396442250587d14f8369b16ed2eef32b5e620 100644
|
| --- a/content/browser/compositor/delegated_frame_host.cc
|
| +++ b/content/browser/compositor/delegated_frame_host.cc
|
| @@ -696,30 +696,8 @@ void DelegatedFrameHost::CopyFromCompositingSurfaceHasResultForVideo(
|
| yuv_readback_pipeline->scaler()->SrcSize() != result_rect.size() ||
|
| yuv_readback_pipeline->scaler()->SrcSubrect() != result_rect ||
|
| yuv_readback_pipeline->scaler()->DstSize() != region_in_frame.size()) {
|
| - GLHelper::ScalerQuality quality = GLHelper::SCALER_QUALITY_FAST;
|
| - std::string quality_switch = switches::kTabCaptureDownscaleQuality;
|
| - // If we're scaling up, we can use the "best" quality.
|
| - if (result_rect.size().width() < region_in_frame.size().width() &&
|
| - result_rect.size().height() < region_in_frame.size().height())
|
| - quality_switch = switches::kTabCaptureUpscaleQuality;
|
| -
|
| - std::string switch_value =
|
| - base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
|
| - quality_switch);
|
| - if (switch_value == "fast")
|
| - quality = GLHelper::SCALER_QUALITY_FAST;
|
| - else if (switch_value == "good")
|
| - quality = GLHelper::SCALER_QUALITY_GOOD;
|
| - else if (switch_value == "best")
|
| - quality = GLHelper::SCALER_QUALITY_BEST;
|
| -
|
| - dfh->yuv_readback_pipeline_.reset(
|
| - gl_helper->CreateReadbackPipelineYUV(quality,
|
| - result_rect.size(),
|
| - result_rect,
|
| - region_in_frame.size(),
|
| - true,
|
| - true));
|
| + dfh->yuv_readback_pipeline_.reset(gl_helper->CreateReadbackPipelineYUV(
|
| + result_rect.size(), result_rect, region_in_frame.size(), true, true));
|
| yuv_readback_pipeline = dfh->yuv_readback_pipeline_.get();
|
| }
|
|
|
|
|