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

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

Issue 1224783002: add matrix options to drawDrawable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: modify gm Created 5 years, 5 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') | src/utils/android/SkAndroidSDKCanvas.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
11 #include "SkCanvas.h" 11 #include "SkCanvas.h"
12 #include "SkDrawable.h" 12 #include "SkDrawable.h"
13 #include "SkMatrix.h"
13 #include "SkPathPriv.h" 14 #include "SkPathPriv.h"
14 #include "SkPicture.h" 15 #include "SkPicture.h"
15 #include "SkRSXform.h" 16 #include "SkRSXform.h"
16 #include "SkTextBlob.h" 17 #include "SkTextBlob.h"
17 18
18 namespace SkRecords { 19 namespace SkRecords {
19 20
20 // A list of all the types of canvas calls we can record. 21 // A list of all the types of canvas calls we can record.
21 // Each of these is reified into a struct below. 22 // Each of these is reified into a struct below.
22 // 23 //
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 RECORD4(DrawBitmapRectToRectBleed, Optional<SkPaint>, paint, 283 RECORD4(DrawBitmapRectToRectBleed, Optional<SkPaint>, paint,
283 ImmutableBitmap, bitmap, 284 ImmutableBitmap, bitmap,
284 Optional<SkRect>, src, 285 Optional<SkRect>, src,
285 SkRect, dst); 286 SkRect, dst);
286 RECORD5(DrawBitmapRectToRectFixedSize, SkPaint, paint, 287 RECORD5(DrawBitmapRectToRectFixedSize, SkPaint, paint,
287 ImmutableBitmap, bitmap, 288 ImmutableBitmap, bitmap,
288 SkRect, src, 289 SkRect, src,
289 SkRect, dst, 290 SkRect, dst,
290 SkCanvas::DrawBitmapRectFlags, flags); 291 SkCanvas::DrawBitmapRectFlags, flags);
291 RECORD3(DrawDRRect, SkPaint, paint, SkRRect, outer, SkRRect, inner); 292 RECORD3(DrawDRRect, SkPaint, paint, SkRRect, outer, SkRRect, inner);
292 RECORD2(DrawDrawable, SkRect, worstCaseBounds, int32_t, index); 293 RECORD3(DrawDrawable, Optional<SkMatrix>, matrix, SkRect, worstCaseBounds, int32 _t, index);
mtklein 2015/07/07 17:07:06 Ooh, actually, not lgtm. Slightly better to use T
293 RECORD4(DrawImage, Optional<SkPaint>, paint, 294 RECORD4(DrawImage, Optional<SkPaint>, paint,
294 RefBox<const SkImage>, image, 295 RefBox<const SkImage>, image,
295 SkScalar, left, 296 SkScalar, left,
296 SkScalar, top); 297 SkScalar, top);
297 RECORD4(DrawImageRect, Optional<SkPaint>, paint, 298 RECORD4(DrawImageRect, Optional<SkPaint>, paint,
298 RefBox<const SkImage>, image, 299 RefBox<const SkImage>, image,
299 Optional<SkRect>, src, 300 Optional<SkRect>, src,
300 SkRect, dst); 301 SkRect, dst);
301 RECORD4(DrawImageNine, Optional<SkPaint>, paint, 302 RECORD4(DrawImageNine, Optional<SkPaint>, paint,
302 RefBox<const SkImage>, image, 303 RefBox<const SkImage>, image,
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 #undef RECORD1 390 #undef RECORD1
390 #undef RECORD2 391 #undef RECORD2
391 #undef RECORD3 392 #undef RECORD3
392 #undef RECORD4 393 #undef RECORD4
393 #undef RECORD5 394 #undef RECORD5
394 #undef RECORD8 395 #undef RECORD8
395 396
396 } // namespace SkRecords 397 } // namespace SkRecords
397 398
398 #endif//SkRecords_DEFINED 399 #endif//SkRecords_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkRecorder.cpp ('k') | src/utils/android/SkAndroidSDKCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698