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 SimCanvas_h | 5 #ifndef SimCanvas_h |
6 #define SimCanvas_h | 6 #define SimCanvas_h |
7 | 7 |
8 #include "platform/graphics/Color.h" | 8 #include "platform/graphics/Color.h" |
| 9 #include "platform/wtf/Vector.h" |
9 #include "third_party/skia/include/core/SkCanvas.h" | 10 #include "third_party/skia/include/core/SkCanvas.h" |
10 #include "wtf/Vector.h" | |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class SimCanvas : public SkCanvas { | 14 class SimCanvas : public SkCanvas { |
15 public: | 15 public: |
16 SimCanvas(int width, int height); | 16 SimCanvas(int width, int height); |
17 | 17 |
18 enum CommandType { | 18 enum CommandType { |
19 Rect, | 19 Rect, |
20 Text, | 20 Text, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 private: | 75 private: |
76 void addCommand(CommandType, RGBA32 = 0); | 76 void addCommand(CommandType, RGBA32 = 0); |
77 | 77 |
78 Vector<Command> m_commands; | 78 Vector<Command> m_commands; |
79 }; | 79 }; |
80 | 80 |
81 } // namespace blink | 81 } // namespace blink |
82 | 82 |
83 #endif | 83 #endif |
OLD | NEW |