| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 void addText(const void* text, size_t byteLength); | 142 void addText(const void* text, size_t byteLength); |
| 143 void addTextBlob(const SkTextBlob* blob); | 143 void addTextBlob(const SkTextBlob* blob); |
| 144 | 144 |
| 145 int find(const SkBitmap& bitmap); | 145 int find(const SkBitmap& bitmap); |
| 146 | 146 |
| 147 protected: | 147 protected: |
| 148 void validate(size_t initialOffset, size_t size) const { | 148 void validate(size_t initialOffset, size_t size) const { |
| 149 SkASSERT(fWriter.bytesWritten() == initialOffset + size); | 149 SkASSERT(fWriter.bytesWritten() == initialOffset + size); |
| 150 } | 150 } |
| 151 | 151 |
| 152 SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&) override; | 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 onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; | 162 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 | 242 |
| 243 uint32_t fRecordFlags; | 243 uint32_t fRecordFlags; |
| 244 int fInitialSaveCount; | 244 int fInitialSaveCount; |
| 245 | 245 |
| 246 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c
onstructor | 246 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c
onstructor |
| 247 | 247 |
| 248 typedef SkCanvas INHERITED; | 248 typedef SkCanvas INHERITED; |
| 249 }; | 249 }; |
| 250 | 250 |
| 251 #endif | 251 #endif |
| OLD | NEW |