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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_browsertest.cc

Issue 456513002: Add base:: qualification to some CommandLine references in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: imerge Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/message_loop/message_loop_proxy.h" 6 #include "base/message_loop/message_loop_proxy.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "content/browser/gpu/compositor_util.h" 9 #include "content/browser/gpu/compositor_util.h"
10 #include "content/browser/gpu/gpu_data_manager_impl.h" 10 #include "content/browser/gpu/gpu_data_manager_impl.h"
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 expected_bitmap_size, 771 expected_bitmap_size,
772 video_frame); 772 video_frame);
773 } 773 }
774 774
775 class CompositingRenderWidgetHostViewTabCaptureHighDPI 775 class CompositingRenderWidgetHostViewTabCaptureHighDPI
776 : public CompositingRenderWidgetHostViewBrowserTestTabCapture { 776 : public CompositingRenderWidgetHostViewBrowserTestTabCapture {
777 public: 777 public:
778 CompositingRenderWidgetHostViewTabCaptureHighDPI() : kScale(2.f) {} 778 CompositingRenderWidgetHostViewTabCaptureHighDPI() : kScale(2.f) {}
779 779
780 virtual void SetUpOnMainThread() OVERRIDE { 780 virtual void SetUpOnMainThread() OVERRIDE {
781 CommandLine* cmd = CommandLine::ForCurrentProcess(); 781 base::CommandLine* cmd = base::CommandLine::ForCurrentProcess();
782 cmd->AppendSwitchASCII(switches::kForceDeviceScaleFactor, 782 cmd->AppendSwitchASCII(switches::kForceDeviceScaleFactor,
783 base::StringPrintf("%f", scale())); 783 base::StringPrintf("%f", scale()));
784 #if defined(OS_WIN) 784 #if defined(OS_WIN)
785 gfx::ForceHighDPISupportForTesting(scale()); 785 gfx::ForceHighDPISupportForTesting(scale());
786 gfx::EnableHighDPISupport(); 786 gfx::EnableHighDPISupport();
787 #endif 787 #endif
788 } 788 }
789 789
790 float scale() const { return kScale; } 790 float scale() const { return kScale; }
791 791
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 CompositingRenderWidgetHostViewBrowserTestTabCapture, 855 CompositingRenderWidgetHostViewBrowserTestTabCapture,
856 testing::ValuesIn(kAllCompositingModes)); 856 testing::ValuesIn(kAllCompositingModes));
857 INSTANTIATE_TEST_CASE_P(GLAndSoftwareCompositing, 857 INSTANTIATE_TEST_CASE_P(GLAndSoftwareCompositing,
858 CompositingRenderWidgetHostViewTabCaptureHighDPI, 858 CompositingRenderWidgetHostViewTabCaptureHighDPI,
859 testing::ValuesIn(kAllCompositingModes)); 859 testing::ValuesIn(kAllCompositingModes));
860 860
861 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) 861 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
862 862
863 } // namespace 863 } // namespace
864 } // namespace content 864 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698