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

Unified Diff: src/core/SkCanvas.cpp

Issue 1077353002: setDrawFilter needs to trigger any deferred saves (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « gyp/tests.gypi ('k') | tests/DrawFilterTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkCanvas.cpp
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 7949cb3be14cf2c901262a3df8fffdce52e05633..68ced602f62da23dc3094de28326797c5502652b 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -589,6 +589,7 @@ SkDrawFilter* SkCanvas::getDrawFilter() const {
}
SkDrawFilter* SkCanvas::setDrawFilter(SkDrawFilter* filter) {
+ this->checkForDeferredSave();
SkRefCnt_SafeAssign(fMCRec->fFilter, filter);
return filter;
}
« no previous file with comments | « gyp/tests.gypi ('k') | tests/DrawFilterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698