| 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 SkRecords_DEFINED | 8 #ifndef SkRecords_DEFINED |
| 9 #define SkRecords_DEFINED | 9 #define SkRecords_DEFINED |
| 10 | 10 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 168 |
| 169 operator const SkBitmap& () const { return fBitmap; } | 169 operator const SkBitmap& () const { return fBitmap; } |
| 170 | 170 |
| 171 private: | 171 private: |
| 172 SkBitmap fBitmap; | 172 SkBitmap fBitmap; |
| 173 }; | 173 }; |
| 174 | 174 |
| 175 RECORD0(NoOp); | 175 RECORD0(NoOp); |
| 176 | 176 |
| 177 RECORD0(Restore); | 177 RECORD0(Restore); |
| 178 #ifdef SK_SUPPORT_LEGACY_SAVEFLAGS |
| 178 RECORD1(Save, SkCanvas::SaveFlags, flags); | 179 RECORD1(Save, SkCanvas::SaveFlags, flags); |
| 179 RECORD3(SaveLayer, Optional<SkRect>, bounds, Optional<SkPaint>, paint, SkCanvas:
:SaveFlags, flags); | 180 RECORD3(SaveLayer, Optional<SkRect>, bounds, Optional<SkPaint>, paint, SkCanvas:
:SaveFlags, flags); |
| 181 #else |
| 182 RECORD0(Save); |
| 183 RECORD2(SaveLayer, Optional<SkRect>, bounds, Optional<SkPaint>, paint); |
| 184 #endif |
| 180 | 185 |
| 181 RECORD1(PushCull, SkRect, rect); | 186 RECORD1(PushCull, SkRect, rect); |
| 182 RECORD0(PopCull); | 187 RECORD0(PopCull); |
| 183 | 188 |
| 184 RECORD1(Concat, SkMatrix, matrix); | 189 RECORD1(Concat, SkMatrix, matrix); |
| 185 RECORD1(SetMatrix, SkMatrix, matrix); | 190 RECORD1(SetMatrix, SkMatrix, matrix); |
| 186 | 191 |
| 187 RECORD3(ClipPath, SkPath, path, SkRegion::Op, op, bool, doAA); | 192 RECORD3(ClipPath, SkPath, path, SkRegion::Op, op, bool, doAA); |
| 188 RECORD3(ClipRRect, SkRRect, rrect, SkRegion::Op, op, bool, doAA); | 193 RECORD3(ClipRRect, SkRRect, rrect, SkRegion::Op, op, bool, doAA); |
| 189 RECORD3(ClipRect, SkRect, rect, SkRegion::Op, op, bool, doAA); | 194 RECORD3(ClipRect, SkRect, rect, SkRegion::Op, op, bool, doAA); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 #undef RECORD0 | 278 #undef RECORD0 |
| 274 #undef RECORD1 | 279 #undef RECORD1 |
| 275 #undef RECORD2 | 280 #undef RECORD2 |
| 276 #undef RECORD3 | 281 #undef RECORD3 |
| 277 #undef RECORD4 | 282 #undef RECORD4 |
| 278 #undef RECORD5 | 283 #undef RECORD5 |
| 279 | 284 |
| 280 } // namespace SkRecords | 285 } // namespace SkRecords |
| 281 | 286 |
| 282 #endif//SkRecords_DEFINED | 287 #endif//SkRecords_DEFINED |
| OLD | NEW |