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

Unified Diff: src/core/SkPictureRecord.cpp

Issue 2224163005: Made shadows blurry (thru implementing variance mapping) (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: removed extra comments 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 side-by-side diff with in-line comments
Download patch
Index: src/core/SkPictureRecord.cpp
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp
index 776e337ff4fa198d2ca9eeb95f841ae01563dd1b..928943339afb638ebd66ac0d8d1b587bde0a5d09 100644
--- a/src/core/SkPictureRecord.cpp
+++ b/src/core/SkPictureRecord.cpp
@@ -694,7 +694,8 @@ void SkPictureRecord::onDrawPicture(const SkPicture* picture, const SkMatrix* ma
void SkPictureRecord::onDrawShadowedPicture(const SkPicture* picture,
const SkMatrix* matrix,
- const SkPaint* paint) {
+ const SkPaint* paint,
+ SkShadowType sType) {
jvanverth1 2016/08/15 16:37:17 const &
vjiaoblack 2016/08/15 17:43:31 Done.
// op + picture index
size_t size = 2 * kUInt32Size;
size_t initialOffset;
@@ -710,6 +711,8 @@ void SkPictureRecord::onDrawShadowedPicture(const SkPicture* picture,
this->addMatrix(m);
this->addPicture(picture);
}
+
+ size += sizeof(sType);
this->validate(initialOffset, size);
}

Powered by Google App Engine
This is Rietveld 408576698