Index: src/core/SkXfermode.cpp |
diff --git a/src/core/SkXfermode.cpp b/src/core/SkXfermode.cpp |
index 5d4b260daa53816f8ac23bc931166a37ea558992..57ae0e48019a21225beb00de713db9f136ba572b 100644 |
--- a/src/core/SkXfermode.cpp |
+++ b/src/core/SkXfermode.cpp |
@@ -1211,7 +1211,7 @@ private: |
return fMode == s.fMode && |
fBackgroundAccess.getTexture() == s.fBackgroundAccess.getTexture(); |
} |
- |
+ |
virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE { |
inout->fValidFlags = 0; |
inout->fIsSingleComponent = false; |
@@ -1709,6 +1709,7 @@ SkXfermode* create_mode(int iMode) { |
} |
} // namespace |
+SK_DECLARE_STATIC_LAZY_PTR_ARRAY(SkXfermode, cached, SkXfermode::kLastMode + 1, create_mode); |
SkXfermode* SkXfermode::Create(Mode mode) { |
SkASSERT(SK_ARRAY_COUNT(gProcCoeffs) == kModeCount); |
@@ -1724,7 +1725,6 @@ SkXfermode* SkXfermode::Create(Mode mode) { |
return NULL; |
} |
- SK_DECLARE_STATIC_LAZY_PTR_ARRAY(SkXfermode, cached, kModeCount, create_mode); |
return SkSafeRef(cached[mode]); |
} |