| 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 <gtest/gtest.h> |
| 8 #include "core/frame/FrameView.h" | 9 #include "core/frame/FrameView.h" |
| 9 #include "core/layout/LayoutTestHelper.h" | 10 #include "core/layout/LayoutTestHelper.h" |
| 10 #include "core/layout/LayoutView.h" | 11 #include "core/layout/LayoutView.h" |
| 11 #include "core/paint/PaintLayer.h" | 12 #include "core/paint/PaintLayer.h" |
| 12 #include "platform/graphics/GraphicsContext.h" | 13 #include "platform/graphics/GraphicsContext.h" |
| 13 #include "platform/graphics/GraphicsLayer.h" | 14 #include "platform/graphics/GraphicsLayer.h" |
| 14 #include "platform/graphics/paint/CullRect.h" | 15 #include "platform/graphics/paint/CullRect.h" |
| 15 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" | 16 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" |
| 16 #include <gtest/gtest.h> | |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| 20 class PaintControllerPaintTestBase : private ScopedSlimmingPaintV2ForTest, | 20 class PaintControllerPaintTestBase : private ScopedSlimmingPaintV2ForTest, |
| 21 public RenderingTest { | 21 public RenderingTest { |
| 22 public: | 22 public: |
| 23 PaintControllerPaintTestBase(bool enableSlimmingPaintV2) | 23 PaintControllerPaintTestBase(bool enableSlimmingPaintV2) |
| 24 : ScopedSlimmingPaintV2ForTest(enableSlimmingPaintV2) {} | 24 : ScopedSlimmingPaintV2ForTest(enableSlimmingPaintV2) {} |
| 25 | 25 |
| 26 protected: | 26 protected: |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // Shorter names for frequently used display item types in tests. | 144 // Shorter names for frequently used display item types in tests. |
| 145 const DisplayItem::Type backgroundType = DisplayItem::kBoxDecorationBackground; | 145 const DisplayItem::Type backgroundType = DisplayItem::kBoxDecorationBackground; |
| 146 const DisplayItem::Type foregroundType = | 146 const DisplayItem::Type foregroundType = |
| 147 DisplayItem::paintPhaseToDrawingType(PaintPhaseForeground); | 147 DisplayItem::paintPhaseToDrawingType(PaintPhaseForeground); |
| 148 const DisplayItem::Type documentBackgroundType = | 148 const DisplayItem::Type documentBackgroundType = |
| 149 DisplayItem::kDocumentBackground; | 149 DisplayItem::kDocumentBackground; |
| 150 | 150 |
| 151 } // namespace blink | 151 } // namespace blink |
| 152 | 152 |
| 153 #endif // PaintControllerPaintTest_h | 153 #endif // PaintControllerPaintTest_h |
| OLD | NEW |