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" | |
14 | 13 |
15 class SkData; | 14 class SkData; |
16 class SkReadBuffer; | 15 class SkReadBuffer; |
17 class SkWriteBuffer; | 16 class SkWriteBuffer; |
| 17 class SkStream; |
| 18 class SkWStream; |
18 struct SkPoint; | 19 struct SkPoint; |
19 | 20 |
20 /** | 21 /** |
21 * Experimental class for annotating draws. Do not use directly yet. | 22 * Experimental class for annotating draws. Do not use directly yet. |
22 * Use helper functions at the bottom of this file for now. | 23 * Use helper functions at the bottom of this file for now. |
23 */ | 24 */ |
24 class SkAnnotation : public SkRefCnt { | 25 class SkAnnotation : public SkRefCnt { |
25 public: | 26 public: |
26 virtual ~SkAnnotation(); | 27 virtual ~SkAnnotation(); |
27 | 28 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 * | 114 * |
114 * If the backend of this canvas does not support annotations, this call is | 115 * If the backend of this canvas does not support annotations, this call is |
115 * safely ignored. | 116 * safely ignored. |
116 * | 117 * |
117 * The caller is responsible for managing its ownership of the SkData. | 118 * The caller is responsible for managing its ownership of the SkData. |
118 */ | 119 */ |
119 SK_API void SkAnnotateLinkToDestination(SkCanvas*, const SkRect&, SkData*); | 120 SK_API void SkAnnotateLinkToDestination(SkCanvas*, const SkRect&, SkData*); |
120 | 121 |
121 | 122 |
122 #endif | 123 #endif |
OLD | NEW |