OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 SkPictureRecord_DEFINED | 8 #ifndef SkPictureRecord_DEFINED |
9 #define SkPictureRecord_DEFINED | 9 #define SkPictureRecord_DEFINED |
10 | 10 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 sk_sp<SkSurface> onNewSurface(const SkImageInfo&, const SkSurfaceProps&) ove
rride; | 152 sk_sp<SkSurface> onNewSurface(const SkImageInfo&, const SkSurfaceProps&) ove
rride; |
153 bool onPeekPixels(SkPixmap*) override { return false; } | 153 bool onPeekPixels(SkPixmap*) override { return false; } |
154 | 154 |
155 void willSave() override; | 155 void willSave() override; |
156 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override; | 156 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override; |
157 void willRestore() override; | 157 void willRestore() override; |
158 | 158 |
159 void didConcat(const SkMatrix&) override; | 159 void didConcat(const SkMatrix&) override; |
160 void didSetMatrix(const SkMatrix&) override; | 160 void didSetMatrix(const SkMatrix&) override; |
161 | 161 |
162 void didTranslateZ(SkScalar) override; | |
163 | |
164 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; | 162 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; |
165 | 163 |
166 void onDrawText(const void* text, size_t, SkScalar x, SkScalar y, const SkPa
int&) override; | 164 void onDrawText(const void* text, size_t, SkScalar x, SkScalar y, const SkPa
int&) override; |
167 void onDrawPosText(const void* text, size_t, const SkPoint pos[], const SkPa
int&) override; | 165 void onDrawPosText(const void* text, size_t, const SkPoint pos[], const SkPa
int&) override; |
168 void onDrawPosTextH(const void* text, size_t, const SkScalar xpos[], SkScala
r constY, | 166 void onDrawPosTextH(const void* text, size_t, const SkScalar xpos[], SkScala
r constY, |
169 const SkPaint&) override; | 167 const SkPaint&) override; |
170 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat
h, | 168 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat
h, |
171 const SkMatrix* matrix, const SkPaint&) overri
de; | 169 const SkMatrix* matrix, const SkPaint&) overri
de; |
172 void onDrawTextRSXform(const void* text, size_t byteLength, const SkRSXform
xform[], | 170 void onDrawTextRSXform(const void* text, size_t byteLength, const SkRSXform
xform[], |
173 const SkRect* cull, const SkPaint&) override; | 171 const SkRect* cull, const SkPaint&) override; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 246 |
249 uint32_t fRecordFlags; | 247 uint32_t fRecordFlags; |
250 int fInitialSaveCount; | 248 int fInitialSaveCount; |
251 | 249 |
252 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c
onstructor | 250 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c
onstructor |
253 | 251 |
254 typedef SkCanvas INHERITED; | 252 typedef SkCanvas INHERITED; |
255 }; | 253 }; |
256 | 254 |
257 #endif | 255 #endif |
OLD | NEW |