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

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

Issue 2305433002: Add option to skip rects to drawImageLattice() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Better detection for zero divs Created 4 years, 3 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/SkLatticeIter.h » ('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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 sk_sp<const SkImage> image; 235 sk_sp<const SkImage> image;
236 SkScalar left; 236 SkScalar left;
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;
246 PODArray<SkCanvas::Lattice::Flags> flags;
245 SkRect dst); 247 SkRect dst);
246 RECORD(DrawImageRect, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag, 248 RECORD(DrawImageRect, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag,
247 Optional<SkPaint> paint; 249 Optional<SkPaint> paint;
248 sk_sp<const SkImage> image; 250 sk_sp<const SkImage> image;
249 Optional<SkRect> src; 251 Optional<SkRect> src;
250 SkRect dst; 252 SkRect dst;
251 SkCanvas::SrcRectConstraint constraint); 253 SkCanvas::SrcRectConstraint constraint);
252 RECORD(DrawImageNine, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag, 254 RECORD(DrawImageNine, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag,
253 Optional<SkPaint> paint; 255 Optional<SkPaint> paint;
254 sk_sp<const SkImage> image; 256 sk_sp<const SkImage> image;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 int indexCount); 348 int indexCount);
347 RECORD(DrawAnnotation, 0, // TODO: kDraw_Tag, skia:5548 349 RECORD(DrawAnnotation, 0, // TODO: kDraw_Tag, skia:5548
348 SkRect rect; 350 SkRect rect;
349 SkString key; 351 SkString key;
350 sk_sp<SkData> value); 352 sk_sp<SkData> value);
351 #undef RECORD 353 #undef RECORD
352 354
353 } // namespace SkRecords 355 } // namespace SkRecords
354 356
355 #endif//SkRecords_DEFINED 357 #endif//SkRecords_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | src/core/SkLatticeIter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698