| 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 SimDisplayItemList_h | 5 #ifndef SimDisplayItemList_h |
| 6 #define SimDisplayItemList_h | 6 #define SimDisplayItemList_h |
| 7 | 7 |
| 8 #include "public/platform/WebDisplayItemList.h" | 8 #include "public/platform/WebDisplayItemList.h" |
| 9 #include "web/tests/sim/SimCanvas.h" | 9 #include "web/tests/sim/SimCanvas.h" |
| 10 #include "wtf/text/WTFString.h" | 10 #include "wtf/text/WTFString.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class SimDisplayItemList final : public WebDisplayItemList { | 14 class SimDisplayItemList final : public WebDisplayItemList { |
| 15 public: | 15 public: |
| 16 SimDisplayItemList(); | 16 SimDisplayItemList(); |
| 17 | 17 |
| 18 void appendDrawingItem(const WebRect&, sk_sp<const SkPicture>) override; | 18 void appendDrawingItem(const WebRect&, sk_sp<const CdlPicture>) override; |
| 19 | 19 |
| 20 int drawCount() const { return m_commands.size(); } | 20 int drawCount() const { return m_commands.size(); } |
| 21 | 21 |
| 22 bool contains(SimCanvas::CommandType, | 22 bool contains(SimCanvas::CommandType, |
| 23 const String& colorString = String()) const; | 23 const String& colorString = String()) const; |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 Vector<SimCanvas::Command> m_commands; | 26 Vector<SimCanvas::Command> m_commands; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 } // namespace blink | 29 } // namespace blink |
| 30 | 30 |
| 31 #endif | 31 #endif |
| OLD | NEW |