| 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 "platform/RuntimeEnabledFeatures.h" | 7 #include "platform/RuntimeEnabledFeatures.h" |
| 8 #include "platform/graphics/GraphicsContext.h" | 8 #include "platform/graphics/GraphicsContext.h" |
| 9 #include "platform/graphics/paint/ClipPathDisplayItem.h" | 9 #include "platform/graphics/paint/ClipPathDisplayItem.h" |
| 10 #include "platform/graphics/paint/ClipPathRecorder.h" | 10 #include "platform/graphics/paint/ClipPathRecorder.h" |
| 11 #include "platform/graphics/paint/ClipRecorder.h" | 11 #include "platform/graphics/paint/ClipRecorder.h" |
| 12 #include "platform/graphics/paint/CompositingRecorder.h" | 12 #include "platform/graphics/paint/CompositingRecorder.h" |
| 13 #include "platform/graphics/paint/DrawingDisplayItem.h" | 13 #include "platform/graphics/paint/DrawingDisplayItem.h" |
| 14 #include "platform/graphics/paint/DrawingRecorder.h" | 14 #include "platform/graphics/paint/DrawingRecorder.h" |
| 15 #include "platform/graphics/paint/SubsequenceRecorder.h" | 15 #include "platform/graphics/paint/SubsequenceRecorder.h" |
| 16 #include "platform/testing/FakeDisplayItemClient.h" | 16 #include "platform/testing/FakeDisplayItemClient.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 #include <memory> | 18 #include <memory> |
| 19 | 19 |
| 20 #if 0 |
| 21 |
| 20 namespace blink { | 22 namespace blink { |
| 21 | 23 |
| 22 class PaintControllerTestBase : public testing::Test { | 24 class PaintControllerTestBase : public testing::Test { |
| 23 public: | 25 public: |
| 24 PaintControllerTestBase() | 26 PaintControllerTestBase() |
| 25 : m_paintController(PaintController::create()) { } | 27 : m_paintController(PaintController::create()) { } |
| 26 | 28 |
| 27 IntRect visualRect(const PaintArtifact& paintArtifact, size_t index) | 29 IntRect visualRect(const PaintArtifact& paintArtifact, size_t index) |
| 28 { | 30 { |
| 29 return paintArtifact.getDisplayItemList().visualRect(index); | 31 return paintArtifact.getDisplayItemList().visualRect(index); |
| (...skipping 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1434 } | 1436 } |
| 1435 | 1437 |
| 1436 TEST_F(PaintControllerUnderInvalidationTest, FoldCompositingDrawingInSubsequence
) | 1438 TEST_F(PaintControllerUnderInvalidationTest, FoldCompositingDrawingInSubsequence
) |
| 1437 { | 1439 { |
| 1438 testFoldCompositingDrawingInSubsequence(); | 1440 testFoldCompositingDrawingInSubsequence(); |
| 1439 } | 1441 } |
| 1440 | 1442 |
| 1441 #endif // DCHECK_IS_ON() && defined(GTEST_HAS_DEATH_TEST) && !OS(ANDROID) | 1443 #endif // DCHECK_IS_ON() && defined(GTEST_HAS_DEATH_TEST) && !OS(ANDROID) |
| 1442 | 1444 |
| 1443 } // namespace blink | 1445 } // namespace blink |
| 1446 #endif |
| OLD | NEW |