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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // Make SkRecorder forget entirely about its SkRecord*; all calls to SkRecor
der will fail. | 53 // Make SkRecorder forget entirely about its SkRecord*; all calls to SkRecor
der will fail. |
54 void forgetRecord(); | 54 void forgetRecord(); |
55 | 55 |
56 void willSave() override; | 56 void willSave() override; |
57 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override; | 57 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override; |
58 void willRestore() override {} | 58 void willRestore() override {} |
59 void didRestore() override; | 59 void didRestore() override; |
60 | 60 |
61 void didConcat(const SkMatrix&) override; | 61 void didConcat(const SkMatrix&) override; |
62 void didSetMatrix(const SkMatrix&) override; | 62 void didSetMatrix(const SkMatrix&) override; |
| 63 void didTranslate(SkScalar, SkScalar) override; |
63 | 64 |
64 #ifdef SK_EXPERIMENTAL_SHADOWING | 65 #ifdef SK_EXPERIMENTAL_SHADOWING |
65 void didTranslateZ(SkScalar) override; | 66 void didTranslateZ(SkScalar) override; |
66 #else | 67 #else |
67 void didTranslateZ(SkScalar); | 68 void didTranslateZ(SkScalar); |
68 #endif | 69 #endif |
69 | 70 |
70 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; | 71 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; |
71 void onDrawDrawable(SkDrawable*, const SkMatrix*) override; | 72 void onDrawDrawable(SkDrawable*, const SkMatrix*) override; |
72 void onDrawText(const void* text, | 73 void onDrawText(const void* text, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 168 |
168 DrawPictureMode fDrawPictureMode; | 169 DrawPictureMode fDrawPictureMode; |
169 size_t fApproxBytesUsedBySubPictures; | 170 size_t fApproxBytesUsedBySubPictures; |
170 SkRecord* fRecord; | 171 SkRecord* fRecord; |
171 SkAutoTDelete<SkDrawableList> fDrawableList; | 172 SkAutoTDelete<SkDrawableList> fDrawableList; |
172 | 173 |
173 SkMiniRecorder* fMiniRecorder; | 174 SkMiniRecorder* fMiniRecorder; |
174 }; | 175 }; |
175 | 176 |
176 #endif//SkRecorder_DEFINED | 177 #endif//SkRecorder_DEFINED |
OLD | NEW |