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

Side by Side Diff: include/effects/SkColorMatrixFilter.h

Issue 967943002: impl colormatrix w/ floats (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « include/effects/SkColorMatrix.h ('k') | src/effects/SkColorMatrixFilter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 28 matching lines...) Expand all
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)
42 42
43 protected: 43 protected:
44 explicit SkColorMatrixFilter(const SkColorMatrix&); 44 explicit SkColorMatrixFilter(const SkColorMatrix&);
45 explicit SkColorMatrixFilter(const SkScalar array[20]); 45 explicit SkColorMatrixFilter(const SkScalar array[20]);
46 void flatten(SkWriteBuffer&) const SK_OVERRIDE; 46 void flatten(SkWriteBuffer&) const SK_OVERRIDE;
47 47
48 private: 48 private:
49 SkColorMatrix fMatrix; 49 SkColorMatrix fMatrix;
50 float fTranspose[SkColorMatrix::kCount]; // for Sk4f
50 51
51 typedef void (*Proc)(const State&, unsigned r, unsigned g, unsigned b, 52 typedef void (*Proc)(const State&, unsigned r, unsigned g, unsigned b,
52 unsigned a, int32_t result[4]); 53 unsigned a, int32_t result[4]);
53 54
54 Proc fProc; 55 Proc fProc;
55 State fState; 56 State fState;
56 uint32_t fFlags; 57 uint32_t fFlags;
57 58
58 void initState(const SkScalar array[20]); 59 void initState(const SkScalar array[20]);
59 60
60 typedef SkColorFilter INHERITED; 61 typedef SkColorFilter INHERITED;
61 }; 62 };
62 63
63 #endif 64 #endif
OLDNEW
« no previous file with comments | « include/effects/SkColorMatrix.h ('k') | src/effects/SkColorMatrixFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698