| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |