| 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 #include "SkPatchUtils.h" | 9 #include "SkPatchUtils.h" |
| 10 | 10 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 DRAW(DrawBitmap, drawBitmap(shallow_copy(r.bitmap), r.left, r.top, r.paint)); | 90 DRAW(DrawBitmap, drawBitmap(shallow_copy(r.bitmap), r.left, r.top, r.paint)); |
| 91 DRAW(DrawBitmapMatrix, drawBitmapMatrix(shallow_copy(r.bitmap), r.matrix, r.pain
t)); | 91 DRAW(DrawBitmapMatrix, drawBitmapMatrix(shallow_copy(r.bitmap), r.matrix, r.pain
t)); |
| 92 DRAW(DrawBitmapNine, drawBitmapNine(shallow_copy(r.bitmap), r.center, r.dst, r.p
aint)); | 92 DRAW(DrawBitmapNine, drawBitmapNine(shallow_copy(r.bitmap), r.center, r.dst, r.p
aint)); |
| 93 DRAW(DrawBitmapRectToRect, | 93 DRAW(DrawBitmapRectToRect, |
| 94 drawBitmapRectToRect(shallow_copy(r.bitmap), r.src, r.dst, r.paint, r.fl
ags)); | 94 drawBitmapRectToRect(shallow_copy(r.bitmap), r.src, r.dst, r.paint, r.fl
ags)); |
| 95 DRAW(DrawDRRect, drawDRRect(r.outer, r.inner, r.paint)); | 95 DRAW(DrawDRRect, drawDRRect(r.outer, r.inner, r.paint)); |
| 96 DRAW(DrawOval, drawOval(r.oval, r.paint)); | 96 DRAW(DrawOval, drawOval(r.oval, r.paint)); |
| 97 DRAW(DrawPaint, drawPaint(r.paint)); | 97 DRAW(DrawPaint, drawPaint(r.paint)); |
| 98 DRAW(DrawPath, drawPath(r.path, r.paint)); | 98 DRAW(DrawPath, drawPath(r.path, r.paint)); |
| 99 DRAW(DrawPatch, drawPatch(r.cubics, r.colors, r.texCoords, r.xmode.get(), r.pain
t)); | 99 DRAW(DrawPatch, drawPatch(r.cubics, r.colors, r.texCoords, r.xmode, r.paint)); |
| 100 DRAW(DrawPicture, drawPicture(r.picture, r.matrix, r.paint)); | 100 DRAW(DrawPicture, drawPicture(r.picture, r.matrix, r.paint)); |
| 101 DRAW(DrawPoints, drawPoints(r.mode, r.count, r.pts, r.paint)); | 101 DRAW(DrawPoints, drawPoints(r.mode, r.count, r.pts, r.paint)); |
| 102 DRAW(DrawPosText, drawPosText(r.text, r.byteLength, r.pos, r.paint)); | 102 DRAW(DrawPosText, drawPosText(r.text, r.byteLength, r.pos, r.paint)); |
| 103 DRAW(DrawPosTextH, drawPosTextH(r.text, r.byteLength, r.xpos, r.y, r.paint)); | 103 DRAW(DrawPosTextH, drawPosTextH(r.text, r.byteLength, r.xpos, r.y, r.paint)); |
| 104 DRAW(DrawRRect, drawRRect(r.rrect, r.paint)); | 104 DRAW(DrawRRect, drawRRect(r.rrect, r.paint)); |
| 105 DRAW(DrawRect, drawRect(r.rect, r.paint)); | 105 DRAW(DrawRect, drawRect(r.rect, r.paint)); |
| 106 DRAW(DrawSprite, drawSprite(shallow_copy(r.bitmap), r.left, r.top, r.paint)); | 106 DRAW(DrawSprite, drawSprite(shallow_copy(r.bitmap), r.left, r.top, r.paint)); |
| 107 DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint)); | 107 DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint)); |
| 108 DRAW(DrawTextBlob, drawTextBlob(r.blob, r.x, r.y, r.paint)); | 108 DRAW(DrawTextBlob, drawTextBlob(r.blob, r.x, r.y, r.paint)); |
| 109 DRAW(DrawTextOnPath, drawTextOnPath(r.text, r.byteLength, r.path, r.matrix, r.pa
int)); | 109 DRAW(DrawTextOnPath, drawTextOnPath(r.text, r.byteLength, r.path, r.matrix, r.pa
int)); |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 // Used to track the bounds of Save/Restore blocks and the control ops insid
e them. | 508 // Used to track the bounds of Save/Restore blocks and the control ops insid
e them. |
| 509 SkTDArray<SaveBounds> fSaveStack; | 509 SkTDArray<SaveBounds> fSaveStack; |
| 510 SkTDArray<unsigned> fControlIndices; | 510 SkTDArray<unsigned> fControlIndices; |
| 511 }; | 511 }; |
| 512 | 512 |
| 513 } // namespace SkRecords | 513 } // namespace SkRecords |
| 514 | 514 |
| 515 void SkRecordFillBounds(const SkRecord& record, SkBBoxHierarchy* bbh) { | 515 void SkRecordFillBounds(const SkRecord& record, SkBBoxHierarchy* bbh) { |
| 516 SkRecords::FillBounds(record, bbh); | 516 SkRecords::FillBounds(record, bbh); |
| 517 } | 517 } |
| OLD | NEW |