| OLD | NEW |
| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 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.cubics, r.colors, r.texCoords, r.xmode.get(), r.pain
t)); |
| 55 DRAW(DrawPicture, drawPicture(r.picture, r.matrix, r.paint)); | 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 |
| OLD | NEW |