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

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

Issue 2277053002: Add drawRegion() API to SkCanvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Added shader to test 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
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 M(DrawPicture) \ 68 M(DrawPicture) \
69 M(DrawShadowedPicture) \ 69 M(DrawShadowedPicture) \
70 M(DrawPoints) \ 70 M(DrawPoints) \
71 M(DrawPosText) \ 71 M(DrawPosText) \
72 M(DrawPosTextH) \ 72 M(DrawPosTextH) \
73 M(DrawText) \ 73 M(DrawText) \
74 M(DrawTextOnPath) \ 74 M(DrawTextOnPath) \
75 M(DrawTextRSXform) \ 75 M(DrawTextRSXform) \
76 M(DrawRRect) \ 76 M(DrawRRect) \
77 M(DrawRect) \ 77 M(DrawRect) \
78 M(DrawRegion) \
78 M(DrawTextBlob) \ 79 M(DrawTextBlob) \
79 M(DrawAtlas) \ 80 M(DrawAtlas) \
80 M(DrawVertices) \ 81 M(DrawVertices) \
81 M(DrawAnnotation) 82 M(DrawAnnotation)
82 83
83 // Defines SkRecords::Type, an enum of all record types. 84 // Defines SkRecords::Type, an enum of all record types.
84 #define ENUM(T) T##_Type, 85 #define ENUM(T) T##_Type,
85 enum Type { SK_RECORD_TYPES(ENUM) }; 86 enum Type { SK_RECORD_TYPES(ENUM) };
86 #undef ENUM 87 #undef ENUM
87 88
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 PODArray<char> text; 285 PODArray<char> text;
285 unsigned byteLength; 286 unsigned byteLength;
286 SkScalar y; 287 SkScalar y;
287 PODArray<SkScalar> xpos); 288 PODArray<SkScalar> xpos);
288 RECORD(DrawRRect, kDraw_Tag|kHasPaint_Tag, 289 RECORD(DrawRRect, kDraw_Tag|kHasPaint_Tag,
289 SkPaint paint; 290 SkPaint paint;
290 SkRRect rrect); 291 SkRRect rrect);
291 RECORD(DrawRect, kDraw_Tag|kHasPaint_Tag, 292 RECORD(DrawRect, kDraw_Tag|kHasPaint_Tag,
292 SkPaint paint; 293 SkPaint paint;
293 SkRect rect); 294 SkRect rect);
295 RECORD(DrawRegion, kDraw_Tag|kHasPaint_Tag,
296 SkPaint paint;
297 SkRegion region);
294 RECORD(DrawText, kDraw_Tag|kHasText_Tag|kHasPaint_Tag, 298 RECORD(DrawText, kDraw_Tag|kHasText_Tag|kHasPaint_Tag,
295 SkPaint paint; 299 SkPaint paint;
296 PODArray<char> text; 300 PODArray<char> text;
297 size_t byteLength; 301 size_t byteLength;
298 SkScalar x; 302 SkScalar x;
299 SkScalar y); 303 SkScalar y);
300 RECORD(DrawTextBlob, kDraw_Tag|kHasText_Tag|kHasPaint_Tag, 304 RECORD(DrawTextBlob, kDraw_Tag|kHasText_Tag|kHasPaint_Tag,
301 SkPaint paint; 305 SkPaint paint;
302 sk_sp<const SkTextBlob> blob; 306 sk_sp<const SkTextBlob> blob;
303 SkScalar x; 307 SkScalar x;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 int indexCount); 345 int indexCount);
342 RECORD(DrawAnnotation, 0, // TODO: kDraw_Tag, skia:5548 346 RECORD(DrawAnnotation, 0, // TODO: kDraw_Tag, skia:5548
343 SkRect rect; 347 SkRect rect;
344 SkString key; 348 SkString key;
345 sk_sp<SkData> value); 349 sk_sp<SkData> value);
346 #undef RECORD 350 #undef RECORD
347 351
348 } // namespace SkRecords 352 } // namespace SkRecords
349 353
350 #endif//SkRecords_DEFINED 354 #endif//SkRecords_DEFINED
OLDNEW
« include/core/SkCanvas.h ('K') | « include/core/SkDevice.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698