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

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

Issue 2382893002: Add a src rect to drawImageLattice() API (Closed)
Patch Set: Simplify impl Created 4 years, 2 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/SkCanvas.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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698