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

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

Issue 1889423002: Move Windows DPI Code from ui/gfx to ui/display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a TODO Created 4 years, 8 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
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/content_renderer.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stdint.h> 5 #include <stdint.h>
6 #include <utility> 6 #include <utility>
7 7
8 #include "base/barrier_closure.h" 8 #include "base/barrier_closure.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 25 matching lines...) Expand all
36 #include "third_party/skia/include/core/SkBitmap.h" 36 #include "third_party/skia/include/core/SkBitmap.h"
37 #include "third_party/skia/include/core/SkCanvas.h" 37 #include "third_party/skia/include/core/SkCanvas.h"
38 #include "ui/base/layout.h" 38 #include "ui/base/layout.h"
39 #include "ui/base/ui_base_switches.h" 39 #include "ui/base/ui_base_switches.h"
40 #include "ui/gfx/geometry/size_conversions.h" 40 #include "ui/gfx/geometry/size_conversions.h"
41 #include "ui/gfx/switches.h" 41 #include "ui/gfx/switches.h"
42 #include "ui/gl/gl_switches.h" 42 #include "ui/gl/gl_switches.h"
43 43
44 #if defined(OS_WIN) 44 #if defined(OS_WIN)
45 #include "base/win/windows_version.h" 45 #include "base/win/windows_version.h"
46 #include "ui/gfx/win/dpi.h"
47 #endif 46 #endif
48 47
49 namespace content { 48 namespace content {
50 namespace { 49 namespace {
51 50
52 // Convenience macro: Short-circuit a pass for the tests where platform support 51 // Convenience macro: Short-circuit a pass for the tests where platform support
53 // for forced-compositing mode (or disabled-compositing mode) is lacking. 52 // for forced-compositing mode (or disabled-compositing mode) is lacking.
54 #define SET_UP_SURFACE_OR_PASS_TEST(wait_message) \ 53 #define SET_UP_SURFACE_OR_PASS_TEST(wait_message) \
55 if (!SetUpSourceSurface(wait_message)) { \ 54 if (!SetUpSourceSurface(wait_message)) { \
56 LOG(WARNING) \ 55 LOG(WARNING) \
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 kTestCompositingModes); 1000 kTestCompositingModes);
1002 INSTANTIATE_TEST_CASE_P( 1001 INSTANTIATE_TEST_CASE_P(
1003 GLAndSoftwareCompositing, 1002 GLAndSoftwareCompositing,
1004 CompositingRenderWidgetHostViewBrowserTestTabCaptureHighDPI, 1003 CompositingRenderWidgetHostViewBrowserTestTabCaptureHighDPI,
1005 kTestCompositingModes); 1004 kTestCompositingModes);
1006 1005
1007 #endif // !defined(OS_ANDROID) 1006 #endif // !defined(OS_ANDROID)
1008 1007
1009 } // namespace 1008 } // namespace
1010 } // namespace content 1009 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/content_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698