OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "platform/graphics/paint/PaintController.h" | 5 #include "platform/graphics/paint/PaintController.h" |
6 | 6 |
| 7 #include <memory> |
7 #include "platform/RuntimeEnabledFeatures.h" | 8 #include "platform/RuntimeEnabledFeatures.h" |
8 #include "platform/graphics/GraphicsContext.h" | 9 #include "platform/graphics/GraphicsContext.h" |
9 #include "platform/graphics/paint/ClipPathDisplayItem.h" | 10 #include "platform/graphics/paint/ClipPathDisplayItem.h" |
10 #include "platform/graphics/paint/ClipPathRecorder.h" | 11 #include "platform/graphics/paint/ClipPathRecorder.h" |
11 #include "platform/graphics/paint/ClipRecorder.h" | 12 #include "platform/graphics/paint/ClipRecorder.h" |
12 #include "platform/graphics/paint/CompositingRecorder.h" | 13 #include "platform/graphics/paint/CompositingRecorder.h" |
13 #include "platform/graphics/paint/DrawingDisplayItem.h" | 14 #include "platform/graphics/paint/DrawingDisplayItem.h" |
14 #include "platform/graphics/paint/DrawingRecorder.h" | 15 #include "platform/graphics/paint/DrawingRecorder.h" |
15 #include "platform/graphics/paint/SubsequenceRecorder.h" | 16 #include "platform/graphics/paint/SubsequenceRecorder.h" |
16 #include "platform/testing/FakeDisplayItemClient.h" | 17 #include "platform/testing/FakeDisplayItemClient.h" |
17 #include "platform/testing/PaintPropertyTestHelpers.h" | 18 #include "platform/testing/PaintPropertyTestHelpers.h" |
18 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" | 19 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
21 #include <memory> | |
22 | 22 |
23 using blink::testing::CreateOpacityOnlyEffect; | 23 using blink::testing::CreateOpacityOnlyEffect; |
24 using blink::testing::DefaultPaintChunkProperties; | 24 using blink::testing::DefaultPaintChunkProperties; |
25 using testing::UnorderedElementsAre; | 25 using testing::UnorderedElementsAre; |
26 | 26 |
27 namespace blink { | 27 namespace blink { |
28 | 28 |
29 class PaintControllerTestBase : public ::testing::Test { | 29 class PaintControllerTestBase : public ::testing::Test { |
30 public: | 30 public: |
31 PaintControllerTestBase() : paint_controller_(PaintController::Create()) {} | 31 PaintControllerTestBase() : paint_controller_(PaintController::Create()) {} |
(...skipping 2249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2281 TEST_F(PaintControllerUnderInvalidationTest, InvalidationInSubsequence) { | 2281 TEST_F(PaintControllerUnderInvalidationTest, InvalidationInSubsequence) { |
2282 // We allow invalidated display item clients as long as they would produce the | 2282 // We allow invalidated display item clients as long as they would produce the |
2283 // same display items. The cases of changed display items are tested by other | 2283 // same display items. The cases of changed display items are tested by other |
2284 // test cases. | 2284 // test cases. |
2285 TestInvalidationInSubsequence(); | 2285 TestInvalidationInSubsequence(); |
2286 } | 2286 } |
2287 | 2287 |
2288 #endif // defined(GTEST_HAS_DEATH_TEST) && !OS(ANDROID) | 2288 #endif // defined(GTEST_HAS_DEATH_TEST) && !OS(ANDROID) |
2289 | 2289 |
2290 } // namespace blink | 2290 } // namespace blink |
OLD | NEW |