aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkShader.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-12-01 06:56:38 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-01 06:56:38 -0800
commit88fd0fbcccea615f2d2cd61a121ac9e3185adfe4 (patch)
treef0b13b3d4de8d110ce75f9f03e6cc18fb9aef744 /src/core/SkShader.cpp
parentbb25e44593ff9c318d9fe1dbb5cf30bc2b89eb76 (diff)
Bump min picture version.
Chrome Stable is M39, which produces picture format v35: https://chromium.googlesource.com/skia/+/chrome/m39/include/core/SkPicture.h We don't need any code to deal with pictures older than v35. (When M40 goes stable, we can step up to v37, the current latest version.) BUG=skia: Review URL: https://codereview.chromium.org/770703002
Diffstat (limited to 'src/core/SkShader.cpp')
-rw-r--r--src/core/SkShader.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/core/SkShader.cpp b/src/core/SkShader.cpp
index df615bda5a..39e8ed35f5 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