OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkAnnotation_DEFINED | 8 #ifndef SkAnnotation_DEFINED |
9 #define SkAnnotation_DEFINED | 9 #define SkAnnotation_DEFINED |
10 | 10 |
11 #include "SkRefCnt.h" | 11 #include "SkRefCnt.h" |
12 #include "SkString.h" | 12 #include "SkString.h" |
| 13 #include "SkTypes.h" |
13 | 14 |
14 class SkData; | 15 class SkData; |
15 class SkReadBuffer; | 16 class SkReadBuffer; |
16 class SkWriteBuffer; | 17 class SkWriteBuffer; |
17 class SkStream; | |
18 class SkWStream; | |
19 struct SkPoint; | 18 struct SkPoint; |
20 | 19 |
21 /** | 20 /** |
22 * Experimental class for annotating draws. Do not use directly yet. | 21 * Experimental class for annotating draws. Do not use directly yet. |
23 * Use helper functions at the bottom of this file for now. | 22 * Use helper functions at the bottom of this file for now. |
24 */ | 23 */ |
25 class SkAnnotation : public SkRefCnt { | 24 class SkAnnotation : public SkRefCnt { |
26 public: | 25 public: |
27 virtual ~SkAnnotation(); | 26 virtual ~SkAnnotation(); |
28 | 27 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 * | 113 * |
115 * If the backend of this canvas does not support annotations, this call is | 114 * If the backend of this canvas does not support annotations, this call is |
116 * safely ignored. | 115 * safely ignored. |
117 * | 116 * |
118 * The caller is responsible for managing its ownership of the SkData. | 117 * The caller is responsible for managing its ownership of the SkData. |
119 */ | 118 */ |
120 SK_API void SkAnnotateLinkToDestination(SkCanvas*, const SkRect&, SkData*); | 119 SK_API void SkAnnotateLinkToDestination(SkCanvas*, const SkRect&, SkData*); |
121 | 120 |
122 | 121 |
123 #endif | 122 #endif |
OLD | NEW |