Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: include/private/SkRecords.h

Issue 1992283002: Add drawBitmapLattice() API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rewrite picture impls Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/core/SkDevice.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 M(SaveLayer) \ 48 M(SaveLayer) \
49 M(SetMatrix) \ 49 M(SetMatrix) \
50 M(TranslateZ) \ 50 M(TranslateZ) \
51 M(Concat) \ 51 M(Concat) \
52 M(ClipPath) \ 52 M(ClipPath) \
53 M(ClipRRect) \ 53 M(ClipRRect) \
54 M(ClipRect) \ 54 M(ClipRect) \
55 M(ClipRegion) \ 55 M(ClipRegion) \
56 M(DrawDrawable) \ 56 M(DrawDrawable) \
57 M(DrawImage) \ 57 M(DrawImage) \
58 M(DrawImageLattice) \
58 M(DrawImageRect) \ 59 M(DrawImageRect) \
59 M(DrawImageNine) \ 60 M(DrawImageNine) \
60 M(DrawDRRect) \ 61 M(DrawDRRect) \
61 M(DrawOval) \ 62 M(DrawOval) \
62 M(DrawPaint) \ 63 M(DrawPaint) \
63 M(DrawPath) \ 64 M(DrawPath) \
64 M(DrawPatch) \ 65 M(DrawPatch) \
65 M(DrawPicture) \ 66 M(DrawPicture) \
66 M(DrawShadowedPicture) \ 67 M(DrawShadowedPicture) \
67 M(DrawPoints) \ 68 M(DrawPoints) \
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 SkRRect inner); 216 SkRRect inner);
216 RECORD(DrawDrawable, kDraw_Tag, 217 RECORD(DrawDrawable, kDraw_Tag,
217 Optional<SkMatrix> matrix; 218 Optional<SkMatrix> matrix;
218 SkRect worstCaseBounds; 219 SkRect worstCaseBounds;
219 int32_t index); 220 int32_t index);
220 RECORD(DrawImage, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag, 221 RECORD(DrawImage, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag,
221 Optional<SkPaint> paint; 222 Optional<SkPaint> paint;
222 sk_sp<const SkImage> image; 223 sk_sp<const SkImage> image;
223 SkScalar left; 224 SkScalar left;
224 SkScalar top); 225 SkScalar top);
226 RECORD(DrawImageLattice, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag,
227 Optional<SkPaint> paint;
228 sk_sp<const SkImage> image;
229 int xCount;
230 PODArray<int> xDivs;
231 int yCount;
232 PODArray<int> yDivs;
233 SkRect dst);
225 RECORD(DrawImageRect, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag, 234 RECORD(DrawImageRect, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag,
226 Optional<SkPaint> paint; 235 Optional<SkPaint> paint;
227 sk_sp<const SkImage> image; 236 sk_sp<const SkImage> image;
228 Optional<SkRect> src; 237 Optional<SkRect> src;
229 SkRect dst; 238 SkRect dst;
230 SkCanvas::SrcRectConstraint constraint); 239 SkCanvas::SrcRectConstraint constraint);
231 RECORD(DrawImageNine, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag, 240 RECORD(DrawImageNine, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag,
232 Optional<SkPaint> paint; 241 Optional<SkPaint> paint;
233 sk_sp<const SkImage> image; 242 sk_sp<const SkImage> image;
234 SkIRect center; 243 SkIRect center;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 int indexCount); 330 int indexCount);
322 RECORD(DrawAnnotation, 0, // TODO: kDraw_Tag, skia:5548 331 RECORD(DrawAnnotation, 0, // TODO: kDraw_Tag, skia:5548
323 SkRect rect; 332 SkRect rect;
324 SkString key; 333 SkString key;
325 sk_sp<SkData> value); 334 sk_sp<SkData> value);
326 #undef RECORD 335 #undef RECORD
327 336
328 } // namespace SkRecords 337 } // namespace SkRecords
329 338
330 #endif//SkRecords_DEFINED 339 #endif//SkRecords_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkDevice.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698