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

Unified Diff: Source/platform/graphics/filters/FEColorMatrix.h

Issue 220473008: Remove software path from filters: FEColorMatrix. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove matrix() and others. Created 6 years, 9 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 | « no previous file | Source/platform/graphics/filters/FEColorMatrix.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/filters/FEColorMatrix.h
diff --git a/Source/platform/graphics/filters/FEColorMatrix.h b/Source/platform/graphics/filters/FEColorMatrix.h
index 98695efff5f57babffd9dd4733beed241cb90fc1..4612161960db3840853899016ff236af1d90e534 100644
--- a/Source/platform/graphics/filters/FEColorMatrix.h
+++ b/Source/platform/graphics/filters/FEColorMatrix.h
@@ -58,7 +58,6 @@ private:
FEColorMatrix(Filter*, ColorMatrixType, const Vector<float>&);
virtual void applySoftware() OVERRIDE;
- virtual bool applySkia() OVERRIDE;
virtual bool affectsTransparentPixels() OVERRIDE;
@@ -66,35 +65,6 @@ private:
Vector<float> m_values;
};
-inline void FEColorMatrix::calculateSaturateComponents(float* components, float value)
-{
- components[0] = (0.213 + 0.787 * value);
- components[1] = (0.715 - 0.715 * value);
- components[2] = (0.072 - 0.072 * value);
- components[3] = (0.213 - 0.213 * value);
- components[4] = (0.715 + 0.285 * value);
- components[5] = (0.072 - 0.072 * value);
- components[6] = (0.213 - 0.213 * value);
- components[7] = (0.715 - 0.715 * value);
- components[8] = (0.072 + 0.928 * value);
-}
-
-inline void FEColorMatrix::calculateHueRotateComponents(float* components, float value)
-{
- float cosHue = cos(value * piFloat / 180);
- float sinHue = sin(value * piFloat / 180);
- components[0] = 0.213 + cosHue * 0.787 - sinHue * 0.213;
- components[1] = 0.715 - cosHue * 0.715 - sinHue * 0.715;
- components[2] = 0.072 - cosHue * 0.072 + sinHue * 0.928;
- components[3] = 0.213 - cosHue * 0.213 + sinHue * 0.143;
- components[4] = 0.715 + cosHue * 0.285 + sinHue * 0.140;
- components[5] = 0.072 - cosHue * 0.072 - sinHue * 0.283;
- components[6] = 0.213 - cosHue * 0.213 - sinHue * 0.787;
- components[7] = 0.715 - cosHue * 0.715 + sinHue * 0.715;
- components[8] = 0.072 + cosHue * 0.928 + sinHue * 0.072;
-}
-
-
} // namespace WebCore
#endif // FEColorMatrix_h
« no previous file with comments | « no previous file | Source/platform/graphics/filters/FEColorMatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698