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

Side by Side Diff: src/core/SkRecords.h

Issue 484673003: Record concat as setMatrix. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove no-op INHERITED calls Created 6 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 | « src/core/SkRecorder.cpp ('k') | no next file » | 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 26 matching lines...) Expand all
37 // 37 //
38 // Order doesn't technically matter here, but the compiler can generally generat e better code if 38 // Order doesn't technically matter here, but the compiler can generally generat e better code if
39 // you keep them semantically grouped, especially the Draws. It's also nice to leave NoOp at 0. 39 // you keep them semantically grouped, especially the Draws. It's also nice to leave NoOp at 0.
40 #define SK_RECORD_TYPES(M) \ 40 #define SK_RECORD_TYPES(M) \
41 M(NoOp) \ 41 M(NoOp) \
42 M(Restore) \ 42 M(Restore) \
43 M(Save) \ 43 M(Save) \
44 M(SaveLayer) \ 44 M(SaveLayer) \
45 M(PushCull) \ 45 M(PushCull) \
46 M(PopCull) \ 46 M(PopCull) \
47 M(Concat) \
48 M(SetMatrix) \ 47 M(SetMatrix) \
49 M(ClipPath) \ 48 M(ClipPath) \
50 M(ClipRRect) \ 49 M(ClipRRect) \
51 M(ClipRect) \ 50 M(ClipRect) \
52 M(ClipRegion) \ 51 M(ClipRegion) \
53 M(Clear) \ 52 M(Clear) \
54 M(DrawBitmap) \ 53 M(DrawBitmap) \
55 M(DrawBitmapMatrix) \ 54 M(DrawBitmapMatrix) \
56 M(DrawBitmapNine) \ 55 M(DrawBitmapNine) \
57 M(DrawBitmapRectToRect) \ 56 M(DrawBitmapRectToRect) \
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 196
198 RECORD0(NoOp); 197 RECORD0(NoOp);
199 198
200 RECORD2(Restore, SkIRect, devBounds, SkMatrix, matrix); 199 RECORD2(Restore, SkIRect, devBounds, SkMatrix, matrix);
201 RECORD0(Save); 200 RECORD0(Save);
202 RECORD3(SaveLayer, Optional<SkRect>, bounds, Optional<SkPaint>, paint, SkCanvas: :SaveFlags, flags); 201 RECORD3(SaveLayer, Optional<SkRect>, bounds, Optional<SkPaint>, paint, SkCanvas: :SaveFlags, flags);
203 202
204 RECORD1(PushCull, SkRect, rect); 203 RECORD1(PushCull, SkRect, rect);
205 RECORD0(PopCull); 204 RECORD0(PopCull);
206 205
207 RECORD1(Concat, SkMatrix, matrix);
208 RECORD1(SetMatrix, SkMatrix, matrix); 206 RECORD1(SetMatrix, SkMatrix, matrix);
209 207
210 RECORD4(ClipPath, SkIRect, devBounds, SkPath, path, SkRegion::Op, op, bool , doAA); 208 RECORD4(ClipPath, SkIRect, devBounds, SkPath, path, SkRegion::Op, op, bool , doAA);
211 RECORD4(ClipRRect, SkIRect, devBounds, SkRRect, rrect, SkRegion::Op, op, bool , doAA); 209 RECORD4(ClipRRect, SkIRect, devBounds, SkRRect, rrect, SkRegion::Op, op, bool , doAA);
212 RECORD4(ClipRect, SkIRect, devBounds, SkRect, rect, SkRegion::Op, op, bool , doAA); 210 RECORD4(ClipRect, SkIRect, devBounds, SkRect, rect, SkRegion::Op, op, bool , doAA);
213 RECORD3(ClipRegion, SkIRect, devBounds, SkRegion, region, SkRegion::Op, op); 211 RECORD3(ClipRegion, SkIRect, devBounds, SkRegion, region, SkRegion::Op, op);
214 212
215 RECORD1(Clear, SkColor, color); 213 RECORD1(Clear, SkColor, color);
216 // While not strictly required, if you have an SkPaint, it's fastest to put it f irst. 214 // While not strictly required, if you have an SkPaint, it's fastest to put it f irst.
217 RECORD4(DrawBitmap, Optional<SkPaint>, paint, 215 RECORD4(DrawBitmap, Optional<SkPaint>, paint,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 #undef RECORD0 311 #undef RECORD0
314 #undef RECORD1 312 #undef RECORD1
315 #undef RECORD2 313 #undef RECORD2
316 #undef RECORD3 314 #undef RECORD3
317 #undef RECORD4 315 #undef RECORD4
318 #undef RECORD5 316 #undef RECORD5
319 317
320 } // namespace SkRecords 318 } // namespace SkRecords
321 319
322 #endif//SkRecords_DEFINED 320 #endif//SkRecords_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkRecorder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698