| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef PaintControllerPaintTest_h | 5 #ifndef PaintControllerPaintTest_h |
| 6 #define PaintControllerPaintTest_h | 6 #define PaintControllerPaintTest_h |
| 7 | 7 |
| 8 #include "core/frame/FrameView.h" | 8 #include "core/frame/FrameView.h" |
| 9 #include "core/layout/LayoutTestHelper.h" | 9 #include "core/layout/LayoutTestHelper.h" |
| 10 #include "core/layout/LayoutView.h" | 10 #include "core/layout/LayoutView.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 int numCachedNewItems() { return rootPaintController().m_numCachedNewItems; } | 82 int numCachedNewItems() { return rootPaintController().m_numCachedNewItems; } |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 class PaintControllerPaintTest : public PaintControllerPaintTestBase { | 85 class PaintControllerPaintTest : public PaintControllerPaintTestBase { |
| 86 public: | 86 public: |
| 87 PaintControllerPaintTest() : PaintControllerPaintTestBase(false) {} | 87 PaintControllerPaintTest() : PaintControllerPaintTestBase(false) {} |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 class PaintControllerPaintTestForSlimmingPaintV2 | 90 class PaintControllerPaintTestForSlimmingPaintV2 |
| 91 : public PaintControllerPaintTestBase { | 91 : public PaintControllerPaintTestBase, |
| 92 public testing::WithParamInterface<bool>, |
| 93 private ScopedRootLayerScrollingForTest { |
| 92 public: | 94 public: |
| 93 PaintControllerPaintTestForSlimmingPaintV2() | 95 PaintControllerPaintTestForSlimmingPaintV2() |
| 94 : PaintControllerPaintTestBase(true) {} | 96 : PaintControllerPaintTestBase(true), |
| 97 ScopedRootLayerScrollingForTest(GetParam()) {} |
| 95 }; | 98 }; |
| 96 | 99 |
| 97 class PaintControllerPaintTestForSlimmingPaintV1AndV2 | 100 class PaintControllerPaintTestForSlimmingPaintV1AndV2 |
| 98 : public PaintControllerPaintTestBase, | 101 : public PaintControllerPaintTestBase, |
| 99 public testing::WithParamInterface<bool> { | 102 public testing::WithParamInterface<bool> { |
| 100 public: | 103 public: |
| 101 PaintControllerPaintTestForSlimmingPaintV1AndV2() | 104 PaintControllerPaintTestForSlimmingPaintV1AndV2() |
| 102 : PaintControllerPaintTestBase(GetParam()) {} | 105 : PaintControllerPaintTestBase(GetParam()) {} |
| 103 }; | 106 }; |
| 104 | 107 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 // Shorter names for frequently used display item types in tests. | 144 // Shorter names for frequently used display item types in tests. |
| 142 const DisplayItem::Type backgroundType = DisplayItem::kBoxDecorationBackground; | 145 const DisplayItem::Type backgroundType = DisplayItem::kBoxDecorationBackground; |
| 143 const DisplayItem::Type foregroundType = | 146 const DisplayItem::Type foregroundType = |
| 144 DisplayItem::paintPhaseToDrawingType(PaintPhaseForeground); | 147 DisplayItem::paintPhaseToDrawingType(PaintPhaseForeground); |
| 145 const DisplayItem::Type documentBackgroundType = | 148 const DisplayItem::Type documentBackgroundType = |
| 146 DisplayItem::kDocumentBackground; | 149 DisplayItem::kDocumentBackground; |
| 147 | 150 |
| 148 } // namespace blink | 151 } // namespace blink |
| 149 | 152 |
| 150 #endif // PaintControllerPaintTest_h | 153 #endif // PaintControllerPaintTest_h |
| OLD | NEW |