| 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 #include "platform/graphics/paint/PaintChunker.h" | 5 #include "platform/graphics/paint/PaintChunker.h" |
| 6 | 6 |
| 7 #include "platform/RuntimeEnabledFeatures.h" | 7 #include "platform/RuntimeEnabledFeatures.h" |
| 8 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 class TestDisplayItem : public DisplayItem, public DisplayItemClient { | 37 class TestDisplayItem : public DisplayItem, public DisplayItemClient { |
| 38 public: | 38 public: |
| 39 TestDisplayItem(DisplayItem::Type type) : DisplayItem(*this, type, sizeof(*t
his)) { } | 39 TestDisplayItem(DisplayItem::Type type) : DisplayItem(*this, type, sizeof(*t
his)) { } |
| 40 | 40 |
| 41 void replay(GraphicsContext&) const final { NOTREACHED(); } | 41 void replay(GraphicsContext&) const final { NOTREACHED(); } |
| 42 void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const f
inal { NOTREACHED(); } | 42 void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const f
inal { NOTREACHED(); } |
| 43 String debugName() const final { return "Test"; } | 43 String debugName() const final { return "Test"; } |
| 44 LayoutRect visualRect() const final { return LayoutRect(); } | 44 LayoutRect visualRect() const final { return LayoutRect(); } |
| 45 |
| 46 DISPLAY_ITEM_CACHE_STATUS_IMPLEMENTATION |
| 45 }; | 47 }; |
| 46 | 48 |
| 47 class NormalTestDisplayItem : public TestDisplayItem { | 49 class NormalTestDisplayItem : public TestDisplayItem { |
| 48 public: | 50 public: |
| 49 NormalTestDisplayItem() : TestDisplayItem(DisplayItem::DrawingFirst) { } | 51 NormalTestDisplayItem() : TestDisplayItem(DisplayItem::DrawingFirst) { } |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 class TestDisplayItemRequiringSeparateChunk : public TestDisplayItem { | 54 class TestDisplayItemRequiringSeparateChunk : public TestDisplayItem { |
| 53 public: | 55 public: |
| 54 TestDisplayItemRequiringSeparateChunk() : TestDisplayItem(DisplayItem::Forei
gnLayerPlugin) { } | 56 TestDisplayItemRequiringSeparateChunk() : TestDisplayItem(DisplayItem::Forei
gnLayerPlugin) { } |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 PaintChunk(2, 4, nullptr, simpleTransform), | 315 PaintChunk(2, 4, nullptr, simpleTransform), |
| 314 PaintChunk(4, 5, nullptr, simpleTransform), | 316 PaintChunk(4, 5, nullptr, simpleTransform), |
| 315 PaintChunk(5, 6, nullptr, simpleTransform), | 317 PaintChunk(5, 6, nullptr, simpleTransform), |
| 316 PaintChunk(6, 7, nullptr, rootPaintChunkProperties()))); | 318 PaintChunk(6, 7, nullptr, rootPaintChunkProperties()))); |
| 317 } | 319 } |
| 318 | 320 |
| 319 #endif | 321 #endif |
| 320 | 322 |
| 321 } // namespace | 323 } // namespace |
| 322 } // namespace blink | 324 } // namespace blink |
| OLD | NEW |