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

Unified Diff: src/core/SkShader.cpp

Issue 770703002: Bump min picture version. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: TODO Created 6 years, 1 month 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 | « src/core/SkReadBuffer.cpp ('k') | src/effects/SkBitmapSource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkShader.cpp
diff --git a/src/core/SkShader.cpp b/src/core/SkShader.cpp
index df615bda5a0786b5c072a759299fd0558e2c8987..39e8ed35f5cd516185ef8c6f85cebbb99d4bc6c4 100644
--- a/src/core/SkShader.cpp
+++ b/src/core/SkShader.cpp
@@ -273,15 +273,6 @@ bool SkColorShader::isOpaque() const {
#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
SkColorShader::SkColorShader(SkReadBuffer& b) : INHERITED(b) {
- // V25_COMPATIBILITY_CODE We had a boolean to make the color shader inherit the paint's
- // color. We don't support that any more.
- if (b.isVersionLT(SkReadBuffer::kColorShaderNoBool_Version)) {
- if (b.readBool()) {
- SkDEBUGFAIL("We shouldn't have pictures that recorded the inherited case.");
- fColor = SK_ColorWHITE;
- return;
- }
- }
fColor = b.readColor();
}
#endif
« no previous file with comments | « src/core/SkReadBuffer.cpp ('k') | src/effects/SkBitmapSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698