| 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 SkColorMatrixFilter_DEFINED | 8 #ifndef SkColorMatrixFilter_DEFINED |
| 9 #define SkColorMatrixFilter_DEFINED | 9 #define SkColorMatrixFilter_DEFINED |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 } | 21 } |
| 22 | 22 |
| 23 // overrides from SkColorFilter | 23 // overrides from SkColorFilter |
| 24 void filterSpan(const SkPMColor src[], int count, SkPMColor[]) const SK_OVER
RIDE; | 24 void filterSpan(const SkPMColor src[], int count, SkPMColor[]) const SK_OVER
RIDE; |
| 25 void filterSpan16(const uint16_t src[], int count, uint16_t[]) const SK_OVER
RIDE; | 25 void filterSpan16(const uint16_t src[], int count, uint16_t[]) const SK_OVER
RIDE; |
| 26 uint32_t getFlags() const SK_OVERRIDE; | 26 uint32_t getFlags() const SK_OVERRIDE; |
| 27 bool asColorMatrix(SkScalar matrix[20]) const SK_OVERRIDE; | 27 bool asColorMatrix(SkScalar matrix[20]) const SK_OVERRIDE; |
| 28 SkColorFilter* newComposed(const SkColorFilter*) const SK_OVERRIDE; | 28 SkColorFilter* newComposed(const SkColorFilter*) const SK_OVERRIDE; |
| 29 | 29 |
| 30 #if SK_SUPPORT_GPU | 30 #if SK_SUPPORT_GPU |
| 31 GrFragmentProcessor* asFragmentProcessor(GrContext*) const SK_OVERRIDE; | 31 bool asFragmentProcessors(GrContext*, SkTDArray<GrFragmentProcessor*>*) cons
t SK_OVERRIDE; |
| 32 #endif | 32 #endif |
| 33 | 33 |
| 34 struct State { | 34 struct State { |
| 35 int32_t fArray[20]; | 35 int32_t fArray[20]; |
| 36 int fShift; | 36 int fShift; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 SK_TO_STRING_OVERRIDE() | 39 SK_TO_STRING_OVERRIDE() |
| 40 | 40 |
| 41 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkColorMatrixFilter) | 41 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkColorMatrixFilter) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 54 Proc fProc; | 54 Proc fProc; |
| 55 State fState; | 55 State fState; |
| 56 uint32_t fFlags; | 56 uint32_t fFlags; |
| 57 | 57 |
| 58 void initState(const SkScalar array[20]); | 58 void initState(const SkScalar array[20]); |
| 59 | 59 |
| 60 typedef SkColorFilter INHERITED; | 60 typedef SkColorFilter INHERITED; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 #endif | 63 #endif |
| OLD | NEW |