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

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

Issue 15697012: Add printing of SkColorFilter-derived classes to debugger (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Remove unnecessary macros Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « include/core/SkColorFilter.h ('k') | src/core/SkPaint.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 12 matching lines...) Expand all
23 virtual bool asColorMatrix(SkScalar matrix[20]) const SK_OVERRIDE; 23 virtual bool asColorMatrix(SkScalar matrix[20]) const SK_OVERRIDE;
24 #if SK_SUPPORT_GPU 24 #if SK_SUPPORT_GPU
25 virtual GrEffectRef* asNewEffect(GrContext*) const SK_OVERRIDE; 25 virtual GrEffectRef* asNewEffect(GrContext*) const SK_OVERRIDE;
26 #endif 26 #endif
27 27
28 struct State { 28 struct State {
29 int32_t fArray[20]; 29 int32_t fArray[20];
30 int fShift; 30 int fShift;
31 }; 31 };
32 32
33 SkDEVCODE(virtual void toString(SkString* str) const SK_OVERRIDE;)
34
33 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkColorMatrixFilter) 35 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkColorMatrixFilter)
34 36
35 protected: 37 protected:
36 SkColorMatrixFilter(SkFlattenableReadBuffer& buffer); 38 SkColorMatrixFilter(SkFlattenableReadBuffer& buffer);
37 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; 39 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE;
38 40
39 private: 41 private:
40 SkColorMatrix fMatrix; 42 SkColorMatrix fMatrix;
41 43
42 typedef void (*Proc)(const State&, unsigned r, unsigned g, unsigned b, 44 typedef void (*Proc)(const State&, unsigned r, unsigned g, unsigned b,
43 unsigned a, int32_t result[4]); 45 unsigned a, int32_t result[4]);
44 46
45 Proc fProc; 47 Proc fProc;
46 State fState; 48 State fState;
47 uint32_t fFlags; 49 uint32_t fFlags;
48 50
49 void initState(const SkScalar array[20]); 51 void initState(const SkScalar array[20]);
50 52
51 typedef SkColorFilter INHERITED; 53 typedef SkColorFilter INHERITED;
52 }; 54 };
53 55
54 #endif 56 #endif
OLDNEW
« no previous file with comments | « include/core/SkColorFilter.h ('k') | src/core/SkPaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698