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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 } | 190 } |
191 | 191 |
192 operator const SkBitmap& () const { return fBitmap; } | 192 operator const SkBitmap& () const { return fBitmap; } |
193 | 193 |
194 private: | 194 private: |
195 SkBitmap fBitmap; | 195 SkBitmap fBitmap; |
196 }; | 196 }; |
197 | 197 |
198 RECORD0(NoOp); | 198 RECORD0(NoOp); |
199 | 199 |
200 RECORD1(Restore, SkMatrix, matrix); | 200 RECORD2(Restore, SkIRect, devBounds, SkMatrix, matrix); |
201 RECORD0(Save); | 201 RECORD0(Save); |
202 RECORD3(SaveLayer, Optional<SkRect>, bounds, Optional<SkPaint>, paint, SkCanvas:
:SaveFlags, flags); | 202 RECORD3(SaveLayer, Optional<SkRect>, bounds, Optional<SkPaint>, paint, SkCanvas:
:SaveFlags, flags); |
203 | 203 |
204 RECORD1(PushCull, SkRect, rect); | 204 RECORD1(PushCull, SkRect, rect); |
205 RECORD0(PopCull); | 205 RECORD0(PopCull); |
206 | 206 |
207 RECORD1(Concat, SkMatrix, matrix); | 207 RECORD1(Concat, SkMatrix, matrix); |
208 RECORD1(SetMatrix, SkMatrix, matrix); | 208 RECORD1(SetMatrix, SkMatrix, matrix); |
209 | 209 |
210 RECORD3(ClipPath, SkPath, path, SkRegion::Op, op, bool, doAA); | 210 RECORD4(ClipPath, SkIRect, devBounds, SkPath, path, SkRegion::Op, op, bool
, doAA); |
211 RECORD3(ClipRRect, SkRRect, rrect, SkRegion::Op, op, bool, doAA); | 211 RECORD4(ClipRRect, SkIRect, devBounds, SkRRect, rrect, SkRegion::Op, op, bool
, doAA); |
212 RECORD3(ClipRect, SkRect, rect, SkRegion::Op, op, bool, doAA); | 212 RECORD4(ClipRect, SkIRect, devBounds, SkRect, rect, SkRegion::Op, op, bool
, doAA); |
213 RECORD2(ClipRegion, SkRegion, region, SkRegion::Op, op); | 213 RECORD3(ClipRegion, SkIRect, devBounds, SkRegion, region, SkRegion::Op, op); |
214 | 214 |
215 RECORD1(Clear, SkColor, color); | 215 RECORD1(Clear, SkColor, color); |
216 // While not strictly required, if you have an SkPaint, it's fastest to put it f
irst. | 216 // While not strictly required, if you have an SkPaint, it's fastest to put it f
irst. |
217 RECORD4(DrawBitmap, Optional<SkPaint>, paint, | 217 RECORD4(DrawBitmap, Optional<SkPaint>, paint, |
218 ImmutableBitmap, bitmap, | 218 ImmutableBitmap, bitmap, |
219 SkScalar, left, | 219 SkScalar, left, |
220 SkScalar, top); | 220 SkScalar, top); |
221 RECORD3(DrawBitmapMatrix, Optional<SkPaint>, paint, ImmutableBitmap, bitmap, SkM
atrix, matrix); | 221 RECORD3(DrawBitmapMatrix, Optional<SkPaint>, paint, ImmutableBitmap, bitmap, SkM
atrix, matrix); |
222 RECORD4(DrawBitmapNine, Optional<SkPaint>, paint, | 222 RECORD4(DrawBitmapNine, Optional<SkPaint>, paint, |
223 ImmutableBitmap, bitmap, | 223 ImmutableBitmap, bitmap, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 #undef RECORD0 | 313 #undef RECORD0 |
314 #undef RECORD1 | 314 #undef RECORD1 |
315 #undef RECORD2 | 315 #undef RECORD2 |
316 #undef RECORD3 | 316 #undef RECORD3 |
317 #undef RECORD4 | 317 #undef RECORD4 |
318 #undef RECORD5 | 318 #undef RECORD5 |
319 | 319 |
320 } // namespace SkRecords | 320 } // namespace SkRecords |
321 | 321 |
322 #endif//SkRecords_DEFINED | 322 #endif//SkRecords_DEFINED |
OLD | NEW |