| Index: chrome/browser/extensions/api/tab_capture/tab_capture_performancetest.cc
|
| diff --git a/chrome/browser/extensions/api/tab_capture/tab_capture_performancetest.cc b/chrome/browser/extensions/api/tab_capture/tab_capture_performancetest.cc
|
| index 759aa1186f774b944deb71339aff9764d1174fc2..8c49a593f5e71b03178333bf28fe549854e4c740 100644
|
| --- a/chrome/browser/extensions/api/tab_capture/tab_capture_performancetest.cc
|
| +++ b/chrome/browser/extensions/api/tab_capture/tab_capture_performancetest.cc
|
| @@ -41,12 +41,6 @@ enum TestFlags {
|
| // when on GPU, nor to 60hz when not on GPU.
|
| kTestThroughWebRTC = 1 << 3, // Send captured frames through webrtc
|
| kSmallWindow = 1 << 4, // 1 = 800x600, 0 = 2000x1000
|
| -
|
| - kScaleQualityMask = 3 << 5, // two bits select which scaling quality
|
| - kScaleQualityDefault = 0 << 5, // to use on aura.
|
| - kScaleQualityFast = 1 << 5,
|
| - kScaleQualityGood = 2 << 5,
|
| - kScaleQualityBest = 3 << 5,
|
| };
|
|
|
| class TabCapturePerformanceTest
|
| @@ -63,19 +57,6 @@ class TabCapturePerformanceTest
|
| return base::CommandLine::ForCurrentProcess()->HasSwitch("enable-gpu");
|
| }
|
|
|
| - std::string ScalingMethod() const {
|
| - switch (GetParam() & kScaleQualityMask) {
|
| - case kScaleQualityFast:
|
| - return "fast";
|
| - case kScaleQualityGood:
|
| - return "good";
|
| - case kScaleQualityBest:
|
| - return "best";
|
| - default:
|
| - return "";
|
| - }
|
| - }
|
| -
|
| std::string GetSuffixForTestFlags() {
|
| std::string suffix;
|
| if (HasFlag(kForceGpuComposited))
|
| @@ -86,8 +67,6 @@ class TabCapturePerformanceTest
|
| suffix += "_novsync";
|
| if (HasFlag(kTestThroughWebRTC))
|
| suffix += "_webrtc";
|
| - if (!ScalingMethod().empty())
|
| - suffix += "_scale" + ScalingMethod();
|
| if (HasFlag(kSmallWindow))
|
| suffix += "_small";
|
| return suffix;
|
| @@ -99,13 +78,6 @@ class TabCapturePerformanceTest
|
| }
|
|
|
| void SetUpCommandLine(base::CommandLine* command_line) override {
|
| - if (!ScalingMethod().empty()) {
|
| - command_line->AppendSwitchASCII(switches::kTabCaptureUpscaleQuality,
|
| - ScalingMethod());
|
| - command_line->AppendSwitchASCII(switches::kTabCaptureDownscaleQuality,
|
| - ScalingMethod());
|
| - }
|
| -
|
| // Some of the tests may launch http requests through JSON or AJAX
|
| // which causes a security error (cross domain request) when the page
|
| // is loaded from the local file system ( file:// ). The following switch
|
|
|