| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2007 The Android Open Source Project | 2 * Copyright 2007 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkColorMatrix_DEFINED | 8 #ifndef SkColorMatrix_DEFINED |
| 9 #define SkColorMatrix_DEFINED | 9 #define SkColorMatrix_DEFINED |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 void setSaturation(SkScalar sat); | 53 void setSaturation(SkScalar sat); |
| 54 void setRGB2YUV(); | 54 void setRGB2YUV(); |
| 55 void setYUV2RGB(); | 55 void setYUV2RGB(); |
| 56 | 56 |
| 57 bool operator==(const SkColorMatrix& other) const { | 57 bool operator==(const SkColorMatrix& other) const { |
| 58 return 0 == memcmp(fMat, other.fMat, sizeof(fMat)); | 58 return 0 == memcmp(fMat, other.fMat, sizeof(fMat)); |
| 59 } | 59 } |
| 60 | 60 |
| 61 bool operator!=(const SkColorMatrix& other) const { return !((*this) == othe
r); } | 61 bool operator!=(const SkColorMatrix& other) const { return !((*this) == othe
r); } |
| 62 |
| 63 static bool NeedsClamping(const SkScalar[20]); |
| 64 static void SetConcat(SkScalar result[20], const SkScalar outer[20], const S
kScalar inner[20]); |
| 62 }; | 65 }; |
| 63 | 66 |
| 64 #endif | 67 #endif |
| OLD | NEW |