OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 SkRecorder_DEFINED | 8 #ifndef SkRecorder_DEFINED |
9 #define SkRecorder_DEFINED | 9 #define SkRecorder_DEFINED |
10 | 10 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle
) SK_OVERRIDE; | 100 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle
) SK_OVERRIDE; |
101 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt
yle) SK_OVERRIDE; | 101 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt
yle) SK_OVERRIDE; |
102 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle
) SK_OVERRIDE; | 102 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle
) SK_OVERRIDE; |
103 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) SK_OVERRIDE; | 103 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) SK_OVERRIDE; |
104 | 104 |
105 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE
RRIDE; | 105 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE
RRIDE; |
106 | 106 |
107 void onPushCull(const SkRect& cullRect) SK_OVERRIDE; | 107 void onPushCull(const SkRect& cullRect) SK_OVERRIDE; |
108 void onPopCull() SK_OVERRIDE; | 108 void onPopCull() SK_OVERRIDE; |
109 | 109 |
| 110 void beginCommentGroup(const char*) SK_OVERRIDE; |
| 111 void addComment(const char*, const char*) SK_OVERRIDE; |
| 112 void endCommentGroup() SK_OVERRIDE; |
| 113 |
110 private: | 114 private: |
111 template <typename T> | 115 template <typename T> |
112 T* copy(const T*); | 116 T* copy(const T*); |
113 | 117 |
114 template <typename T> | 118 template <typename T> |
115 T* copy(const T[], size_t count); | 119 T* copy(const T[], size_t count); |
116 | 120 |
117 SkIRect devBounds() const { | 121 SkIRect devBounds() const { |
118 SkIRect devBounds; | 122 SkIRect devBounds; |
119 this->getClipDeviceBounds(&devBounds); | 123 this->getClipDeviceBounds(&devBounds); |
120 return devBounds; | 124 return devBounds; |
121 } | 125 } |
122 | 126 |
123 SkRecord* fRecord; | 127 SkRecord* fRecord; |
124 }; | 128 }; |
125 | 129 |
126 #endif//SkRecorder_DEFINED | 130 #endif//SkRecorder_DEFINED |
OLD | NEW |