OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef SKDRAWCOMMAND_H_ | 9 #ifndef SKDRAWCOMMAND_H_ |
10 #define SKDRAWCOMMAND_H_ | 10 #define SKDRAWCOMMAND_H_ |
11 | 11 |
12 #include "SkPictureFlat.h" | 12 #include "SkPictureFlat.h" |
13 #include "SkCanvas.h" | 13 #include "SkCanvas.h" |
14 #include "SkString.h" | 14 #include "SkString.h" |
15 | 15 |
16 class SkDrawCommand { | 16 class SK_API SkDrawCommand { |
17 public: | 17 public: |
18 /* TODO(chudy): Remove subclasses. */ | 18 /* TODO(chudy): Remove subclasses. */ |
19 SkDrawCommand(DrawType drawType); | 19 SkDrawCommand(DrawType drawType); |
20 SkDrawCommand(); | 20 SkDrawCommand(); |
21 | 21 |
22 virtual ~SkDrawCommand(); | 22 virtual ~SkDrawCommand(); |
23 | 23 |
24 virtual SkString toString(); | 24 virtual SkString toString(); |
25 | 25 |
26 virtual const char* toCString() { | 26 virtual const char* toCString() { |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 SkScalar y() const { return fDy; } | 547 SkScalar y() const { return fDy; } |
548 | 548 |
549 private: | 549 private: |
550 SkScalar fDx; | 550 SkScalar fDx; |
551 SkScalar fDy; | 551 SkScalar fDy; |
552 | 552 |
553 typedef SkDrawCommand INHERITED; | 553 typedef SkDrawCommand INHERITED; |
554 }; | 554 }; |
555 | 555 |
556 #endif | 556 #endif |
OLD | NEW |