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

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

Issue 1529803004: Revert of remove drawSprite from canvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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') | include/utils/SkDumpCanvas.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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 M(DrawPath) \ 56 M(DrawPath) \
57 M(DrawPatch) \ 57 M(DrawPatch) \
58 M(DrawPicture) \ 58 M(DrawPicture) \
59 M(DrawPoints) \ 59 M(DrawPoints) \
60 M(DrawPosText) \ 60 M(DrawPosText) \
61 M(DrawPosTextH) \ 61 M(DrawPosTextH) \
62 M(DrawText) \ 62 M(DrawText) \
63 M(DrawTextOnPath) \ 63 M(DrawTextOnPath) \
64 M(DrawRRect) \ 64 M(DrawRRect) \
65 M(DrawRect) \ 65 M(DrawRect) \
66 M(DrawSprite) \
66 M(DrawTextBlob) \ 67 M(DrawTextBlob) \
67 M(DrawAtlas) \ 68 M(DrawAtlas) \
68 M(DrawVertices) 69 M(DrawVertices)
69 70
70 // Defines SkRecords::Type, an enum of all record types. 71 // Defines SkRecords::Type, an enum of all record types.
71 #define ENUM(T) T##_Type, 72 #define ENUM(T) T##_Type,
72 enum Type { SK_RECORD_TYPES(ENUM) }; 73 enum Type { SK_RECORD_TYPES(ENUM) };
73 #undef ENUM 74 #undef ENUM
74 75
75 #define ACT_AS_PTR(ptr) \ 76 #define ACT_AS_PTR(ptr) \
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 PODArray<char> text; 308 PODArray<char> text;
308 unsigned byteLength; 309 unsigned byteLength;
309 SkScalar y; 310 SkScalar y;
310 PODArray<SkScalar> xpos); 311 PODArray<SkScalar> xpos);
311 RECORD(DrawRRect, kDraw_Tag, 312 RECORD(DrawRRect, kDraw_Tag,
312 SkPaint paint; 313 SkPaint paint;
313 SkRRect rrect); 314 SkRRect rrect);
314 RECORD(DrawRect, kDraw_Tag, 315 RECORD(DrawRect, kDraw_Tag,
315 SkPaint paint; 316 SkPaint paint;
316 SkRect rect); 317 SkRect rect);
318 RECORD(DrawSprite, kDraw_Tag|kHasImage_Tag,
319 Optional<SkPaint> paint;
320 ImmutableBitmap bitmap;
321 int left;
322 int top);
317 RECORD(DrawText, kDraw_Tag|kHasText_Tag, 323 RECORD(DrawText, kDraw_Tag|kHasText_Tag,
318 SkPaint paint; 324 SkPaint paint;
319 PODArray<char> text; 325 PODArray<char> text;
320 size_t byteLength; 326 size_t byteLength;
321 SkScalar x; 327 SkScalar x;
322 SkScalar y); 328 SkScalar y);
323 RECORD(DrawTextBlob, kDraw_Tag|kHasText_Tag, 329 RECORD(DrawTextBlob, kDraw_Tag|kHasText_Tag,
324 SkPaint paint; 330 SkPaint paint;
325 RefBox<const SkTextBlob> blob; 331 RefBox<const SkTextBlob> blob;
326 SkScalar x; 332 SkScalar x;
(...skipping 28 matching lines...) Expand all
355 PODArray<SkColor> colors; 361 PODArray<SkColor> colors;
356 RefBox<SkXfermode> xmode; 362 RefBox<SkXfermode> xmode;
357 PODArray<uint16_t> indices; 363 PODArray<uint16_t> indices;
358 int indexCount); 364 int indexCount);
359 365
360 #undef RECORD 366 #undef RECORD
361 367
362 } // namespace SkRecords 368 } // namespace SkRecords
363 369
364 #endif//SkRecords_DEFINED 370 #endif//SkRecords_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/utils/SkDumpCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698