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

Unified Diff: src/core/SkComposeShader.cpp

Issue 769953002: Remove SK_SUPPORT_LEGACY_DEEPFLATTENING. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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/SkBlitter.cpp ('k') | src/core/SkEmptyShader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkComposeShader.cpp
diff --git a/src/core/SkComposeShader.cpp b/src/core/SkComposeShader.cpp
index 3c5b55aae663e948e0c740d4dbcde3b9948d790a..3c6623d29128e2be3b16fb9cfbc1f65df7b9ad32 100644
--- a/src/core/SkComposeShader.cpp
+++ b/src/core/SkComposeShader.cpp
@@ -26,20 +26,6 @@ SkComposeShader::SkComposeShader(SkShader* sA, SkShader* sB, SkXfermode* mode) {
SkSafeRef(mode);
}
-#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
-SkComposeShader::SkComposeShader(SkReadBuffer& buffer) : INHERITED(buffer) {
- fShaderA = buffer.readShader();
- if (NULL == fShaderA) {
- fShaderA = SkNEW_ARGS(SkColorShader, ((SkColor)0));
- }
- fShaderB = buffer.readShader();
- if (NULL == fShaderB) {
- fShaderB = SkNEW_ARGS(SkColorShader, ((SkColor)0));
- }
- fMode = buffer.readXfermode();
-}
-#endif
-
SkComposeShader::~SkComposeShader() {
SkSafeUnref(fMode);
fShaderB->unref();
« no previous file with comments | « src/core/SkBlitter.cpp ('k') | src/core/SkEmptyShader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698