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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 DRAW(DrawImageRect, legacy_drawImageRect(r.image.get(), r.src, r.dst, r.paint, r
.constraint)); | 112 DRAW(DrawImageRect, legacy_drawImageRect(r.image.get(), r.src, r.dst, r.paint, r
.constraint)); |
113 DRAW(DrawImageNine, drawImageNine(r.image.get(), r.center, r.dst, r.paint)); | 113 DRAW(DrawImageNine, drawImageNine(r.image.get(), r.center, r.dst, r.paint)); |
114 DRAW(DrawOval, drawOval(r.oval, r.paint)); | 114 DRAW(DrawOval, drawOval(r.oval, r.paint)); |
115 DRAW(DrawPaint, drawPaint(r.paint)); | 115 DRAW(DrawPaint, drawPaint(r.paint)); |
116 DRAW(DrawPath, drawPath(r.path, r.paint)); | 116 DRAW(DrawPath, drawPath(r.path, r.paint)); |
117 DRAW(DrawPatch, drawPatch(r.cubics, r.colors, r.texCoords, r.xmode, r.paint)); | 117 DRAW(DrawPatch, drawPatch(r.cubics, r.colors, r.texCoords, r.xmode, r.paint)); |
118 DRAW(DrawPicture, drawPicture(r.picture.get(), &r.matrix, r.paint)); | 118 DRAW(DrawPicture, drawPicture(r.picture.get(), &r.matrix, r.paint)); |
119 | 119 |
120 #ifdef SK_EXPERIMENTAL_SHADOWING | 120 #ifdef SK_EXPERIMENTAL_SHADOWING |
121 DRAW(DrawShadowedPicture, drawShadowedPicture(r.picture.get(), &r.matrix, r.pain
t)); | 121 DRAW(DrawShadowedPicture, drawShadowedPicture(r.picture.get(), &r.matrix, r.pain
t, r.params)); |
122 #else | 122 #else |
123 template <> void Draw::draw(const DrawShadowedPicture& r) { } | 123 template <> void Draw::draw(const DrawShadowedPicture& r) { } |
124 #endif | 124 #endif |
125 | 125 |
126 DRAW(DrawPoints, drawPoints(r.mode, r.count, r.pts, r.paint)); | 126 DRAW(DrawPoints, drawPoints(r.mode, r.count, r.pts, r.paint)); |
127 DRAW(DrawPosText, drawPosText(r.text, r.byteLength, r.pos, r.paint)); | 127 DRAW(DrawPosText, drawPosText(r.text, r.byteLength, r.pos, r.paint)); |
128 DRAW(DrawPosTextH, drawPosTextH(r.text, r.byteLength, r.xpos, r.y, r.paint)); | 128 DRAW(DrawPosTextH, drawPosTextH(r.text, r.byteLength, r.xpos, r.y, r.paint)); |
129 DRAW(DrawRRect, drawRRect(r.rrect, r.paint)); | 129 DRAW(DrawRRect, drawRRect(r.rrect, r.paint)); |
130 DRAW(DrawRect, drawRect(r.rect, r.paint)); | 130 DRAW(DrawRect, drawRect(r.rect, r.paint)); |
131 DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint)); | 131 DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint)); |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 | 624 |
625 void SkRecordFillBounds(const SkRect& cullRect, const SkRecord& record, SkRect b
ounds[]) { | 625 void SkRecordFillBounds(const SkRect& cullRect, const SkRecord& record, SkRect b
ounds[]) { |
626 SkRecords::FillBounds visitor(cullRect, record, bounds); | 626 SkRecords::FillBounds visitor(cullRect, record, bounds); |
627 for (int curOp = 0; curOp < record.count(); curOp++) { | 627 for (int curOp = 0; curOp < record.count(); curOp++) { |
628 visitor.setCurrentOp(curOp); | 628 visitor.setCurrentOp(curOp); |
629 record.visit(curOp, visitor); | 629 record.visit(curOp, visitor); |
630 } | 630 } |
631 visitor.cleanUp(); | 631 visitor.cleanUp(); |
632 } | 632 } |
633 | 633 |
OLD | NEW |