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 didTranslateZ(SkScalar) override; | |
64 | 63 |
65 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; | 64 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; |
66 void onDrawDrawable(SkDrawable*, const SkMatrix*) override; | 65 void onDrawDrawable(SkDrawable*, const SkMatrix*) override; |
67 void onDrawText(const void* text, | 66 void onDrawText(const void* text, |
68 size_t byteLength, | 67 size_t byteLength, |
69 SkScalar x, | 68 SkScalar x, |
70 SkScalar y, | 69 SkScalar y, |
71 const SkPaint& paint) override; | 70 const SkPaint& paint) override; |
72 void onDrawPosText(const void* text, | 71 void onDrawPosText(const void* text, |
73 size_t byteLength, | 72 size_t byteLength, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 146 |
148 DrawPictureMode fDrawPictureMode; | 147 DrawPictureMode fDrawPictureMode; |
149 size_t fApproxBytesUsedBySubPictures; | 148 size_t fApproxBytesUsedBySubPictures; |
150 SkRecord* fRecord; | 149 SkRecord* fRecord; |
151 SkAutoTDelete<SkDrawableList> fDrawableList; | 150 SkAutoTDelete<SkDrawableList> fDrawableList; |
152 | 151 |
153 SkMiniRecorder* fMiniRecorder; | 152 SkMiniRecorder* fMiniRecorder; |
154 }; | 153 }; |
155 | 154 |
156 #endif//SkRecorder_DEFINED | 155 #endif//SkRecorder_DEFINED |
OLD | NEW |