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

Side by Side Diff: src/core/SkRecordDraw.cpp

Issue 448793004: add drawPicture variant that takes a matrix and paint (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more dummies so we can land 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/SkPictureRecord.cpp ('k') | src/core/SkRecorder.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 #include "SkRecordDraw.h" 8 #include "SkRecordDraw.h"
9 9
10 void SkRecordDraw(const SkRecord& record, SkCanvas* canvas, SkDrawPictureCallbac k* callback) { 10 void SkRecordDraw(const SkRecord& record, SkCanvas* canvas, SkDrawPictureCallbac k* callback) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 DRAW(DrawBitmap, drawBitmap(shallow_copy(r.bitmap), r.left, r.top, r.paint)); 45 DRAW(DrawBitmap, drawBitmap(shallow_copy(r.bitmap), r.left, r.top, r.paint));
46 DRAW(DrawBitmapMatrix, drawBitmapMatrix(shallow_copy(r.bitmap), r.matrix, r.pain t)); 46 DRAW(DrawBitmapMatrix, drawBitmapMatrix(shallow_copy(r.bitmap), r.matrix, r.pain t));
47 DRAW(DrawBitmapNine, drawBitmapNine(shallow_copy(r.bitmap), r.center, r.dst, r.p aint)); 47 DRAW(DrawBitmapNine, drawBitmapNine(shallow_copy(r.bitmap), r.center, r.dst, r.p aint));
48 DRAW(DrawBitmapRectToRect, 48 DRAW(DrawBitmapRectToRect,
49 drawBitmapRectToRect(shallow_copy(r.bitmap), r.src, r.dst, r.paint, r.fl ags)); 49 drawBitmapRectToRect(shallow_copy(r.bitmap), r.src, r.dst, r.paint, r.fl ags));
50 DRAW(DrawDRRect, drawDRRect(r.outer, r.inner, r.paint)); 50 DRAW(DrawDRRect, drawDRRect(r.outer, r.inner, r.paint));
51 DRAW(DrawOval, drawOval(r.oval, r.paint)); 51 DRAW(DrawOval, drawOval(r.oval, r.paint));
52 DRAW(DrawPaint, drawPaint(r.paint)); 52 DRAW(DrawPaint, drawPaint(r.paint));
53 DRAW(DrawPath, drawPath(r.path, r.paint)); 53 DRAW(DrawPath, drawPath(r.path, r.paint));
54 DRAW(DrawPatch, drawPatch(r.patch, r.paint)); 54 DRAW(DrawPatch, drawPatch(r.patch, r.paint));
55 DRAW(DrawPicture, drawPicture(r.picture)); 55 DRAW(DrawPicture, drawPicture(r.picture, r.matrix, r.paint));
56 DRAW(DrawPoints, drawPoints(r.mode, r.count, r.pts, r.paint)); 56 DRAW(DrawPoints, drawPoints(r.mode, r.count, r.pts, r.paint));
57 DRAW(DrawPosText, drawPosText(r.text, r.byteLength, r.pos, r.paint)); 57 DRAW(DrawPosText, drawPosText(r.text, r.byteLength, r.pos, r.paint));
58 DRAW(DrawPosTextH, drawPosTextH(r.text, r.byteLength, r.xpos, r.y, r.paint)); 58 DRAW(DrawPosTextH, drawPosTextH(r.text, r.byteLength, r.xpos, r.y, r.paint));
59 DRAW(DrawRRect, drawRRect(r.rrect, r.paint)); 59 DRAW(DrawRRect, drawRRect(r.rrect, r.paint));
60 DRAW(DrawRect, drawRect(r.rect, r.paint)); 60 DRAW(DrawRect, drawRect(r.rect, r.paint));
61 DRAW(DrawSprite, drawSprite(shallow_copy(r.bitmap), r.left, r.top, r.paint)); 61 DRAW(DrawSprite, drawSprite(shallow_copy(r.bitmap), r.left, r.top, r.paint));
62 DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint)); 62 DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint));
63 DRAW(DrawTextOnPath, drawTextOnPath(r.text, r.byteLength, r.path, r.matrix, r.pa int)); 63 DRAW(DrawTextOnPath, drawTextOnPath(r.text, r.byteLength, r.path, r.matrix, r.pa int));
64 DRAW(DrawVertices, drawVertices(r.vmode, r.vertexCount, r.vertices, r.texs, r.co lors, 64 DRAW(DrawVertices, drawVertices(r.vmode, r.vertexCount, r.vertices, r.texs, r.co lors,
65 r.xmode.get(), r.indices, r.indexCount, r.paint) ); 65 r.xmode.get(), r.indices, r.indexCount, r.paint) );
66 #undef DRAW 66 #undef DRAW
67 67
68 } // namespace SkRecords 68 } // namespace SkRecords
OLDNEW
« no previous file with comments | « src/core/SkPictureRecord.cpp ('k') | src/core/SkRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698