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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 SkScalar top); | 237 SkScalar top); |
238 RECORD(DrawImageLattice, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag, | 238 RECORD(DrawImageLattice, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag, |
239 Optional<SkPaint> paint; | 239 Optional<SkPaint> paint; |
240 sk_sp<const SkImage> image; | 240 sk_sp<const SkImage> image; |
241 int xCount; | 241 int xCount; |
242 PODArray<int> xDivs; | 242 PODArray<int> xDivs; |
243 int yCount; | 243 int yCount; |
244 PODArray<int> yDivs; | 244 PODArray<int> yDivs; |
245 int flagCount; | 245 int flagCount; |
246 PODArray<SkCanvas::Lattice::Flags> flags; | 246 PODArray<SkCanvas::Lattice::Flags> flags; |
| 247 SkIRect src; |
247 SkRect dst); | 248 SkRect dst); |
248 RECORD(DrawImageRect, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag, | 249 RECORD(DrawImageRect, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag, |
249 Optional<SkPaint> paint; | 250 Optional<SkPaint> paint; |
250 sk_sp<const SkImage> image; | 251 sk_sp<const SkImage> image; |
251 Optional<SkRect> src; | 252 Optional<SkRect> src; |
252 SkRect dst; | 253 SkRect dst; |
253 SkCanvas::SrcRectConstraint constraint); | 254 SkCanvas::SrcRectConstraint constraint); |
254 RECORD(DrawImageNine, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag, | 255 RECORD(DrawImageNine, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag, |
255 Optional<SkPaint> paint; | 256 Optional<SkPaint> paint; |
256 sk_sp<const SkImage> image; | 257 sk_sp<const SkImage> image; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 int indexCount); | 349 int indexCount); |
349 RECORD(DrawAnnotation, 0, // TODO: kDraw_Tag, skia:5548 | 350 RECORD(DrawAnnotation, 0, // TODO: kDraw_Tag, skia:5548 |
350 SkRect rect; | 351 SkRect rect; |
351 SkString key; | 352 SkString key; |
352 sk_sp<SkData> value); | 353 sk_sp<SkData> value); |
353 #undef RECORD | 354 #undef RECORD |
354 | 355 |
355 } // namespace SkRecords | 356 } // namespace SkRecords |
356 | 357 |
357 #endif//SkRecords_DEFINED | 358 #endif//SkRecords_DEFINED |
OLD | NEW |