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

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

Issue 2224163005: Made shadows blurry (thru implementing variance mapping) (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: made req changes; needs to move blurimagefilter into core Created 4 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
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 #include "SkPatchUtils.h" 9 #include "SkPatchUtils.h"
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 DRAW(DrawImageRect, legacy_drawImageRect(r.image.get(), r.src, r.dst, r.paint, r .constraint)); 110 DRAW(DrawImageRect, legacy_drawImageRect(r.image.get(), r.src, r.dst, r.paint, r .constraint));
111 DRAW(DrawImageNine, drawImageNine(r.image.get(), r.center, r.dst, r.paint)); 111 DRAW(DrawImageNine, drawImageNine(r.image.get(), r.center, r.dst, r.paint));
112 DRAW(DrawOval, drawOval(r.oval, r.paint)); 112 DRAW(DrawOval, drawOval(r.oval, r.paint));
113 DRAW(DrawPaint, drawPaint(r.paint)); 113 DRAW(DrawPaint, drawPaint(r.paint));
114 DRAW(DrawPath, drawPath(r.path, r.paint)); 114 DRAW(DrawPath, drawPath(r.path, r.paint));
115 DRAW(DrawPatch, drawPatch(r.cubics, r.colors, r.texCoords, r.xmode, r.paint)); 115 DRAW(DrawPatch, drawPatch(r.cubics, r.colors, r.texCoords, r.xmode, r.paint));
116 DRAW(DrawPicture, drawPicture(r.picture.get(), &r.matrix, r.paint)); 116 DRAW(DrawPicture, drawPicture(r.picture.get(), &r.matrix, r.paint));
117 117
118 #ifdef SK_EXPERIMENTAL_SHADOWING 118 #ifdef SK_EXPERIMENTAL_SHADOWING
119 DRAW(DrawShadowedPicture, drawShadowedPicture(r.picture.get(), &r.matrix, r.pain t)); 119 DRAW(DrawShadowedPicture, drawShadowedPicture(r.picture.get(), &r.matrix, r.pain t, r.params));
120 #else 120 #else
121 template <> void Draw::draw(const DrawShadowedPicture& r) { } 121 template <> void Draw::draw(const DrawShadowedPicture& r) { }
122 #endif 122 #endif
123 123
124 DRAW(DrawPoints, drawPoints(r.mode, r.count, r.pts, r.paint)); 124 DRAW(DrawPoints, drawPoints(r.mode, r.count, r.pts, r.paint));
125 DRAW(DrawPosText, drawPosText(r.text, r.byteLength, r.pos, r.paint)); 125 DRAW(DrawPosText, drawPosText(r.text, r.byteLength, r.pos, r.paint));
126 DRAW(DrawPosTextH, drawPosTextH(r.text, r.byteLength, r.xpos, r.y, r.paint)); 126 DRAW(DrawPosTextH, drawPosTextH(r.text, r.byteLength, r.xpos, r.y, r.paint));
127 DRAW(DrawRRect, drawRRect(r.rrect, r.paint)); 127 DRAW(DrawRRect, drawRRect(r.rrect, r.paint));
128 DRAW(DrawRect, drawRect(r.rect, r.paint)); 128 DRAW(DrawRect, drawRect(r.rect, r.paint));
129 DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint)); 129 DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint));
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 618
619 void SkRecordFillBounds(const SkRect& cullRect, const SkRecord& record, SkRect b ounds[]) { 619 void SkRecordFillBounds(const SkRect& cullRect, const SkRecord& record, SkRect b ounds[]) {
620 SkRecords::FillBounds visitor(cullRect, record, bounds); 620 SkRecords::FillBounds visitor(cullRect, record, bounds);
621 for (int curOp = 0; curOp < record.count(); curOp++) { 621 for (int curOp = 0; curOp < record.count(); curOp++) {
622 visitor.setCurrentOp(curOp); 622 visitor.setCurrentOp(curOp);
623 record.visit(curOp, visitor); 623 record.visit(curOp, visitor);
624 } 624 }
625 visitor.cleanUp(); 625 visitor.cleanUp();
626 } 626 }
627 627
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698