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

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

Issue 25430005: Fix for potential typedef issue Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 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/effects/SkStippleMaskFilter.h ('k') | include/effects/SkTestImageFilters.h » ('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 2006 The Android Open Source Project 2 * Copyright 2006 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 SkTableMaskFilter_DEFINED 8 #ifndef SkTableMaskFilter_DEFINED
9 #define SkTableMaskFilter_DEFINED 9 #define SkTableMaskFilter_DEFINED
10 10
11 #include "SkMaskFilter.h" 11 #include "SkMaskFilter.h"
12 #include "SkScalar.h" 12 #include "SkScalar.h"
13 13
14 /** \class SkTableMaskFilter 14 /** \class SkTableMaskFilter
15 15
16 Applies a table lookup on each of the alpha values in the mask. 16 Applies a table lookup on each of the alpha values in the mask.
17 Helper methods create some common tables (e.g. gamma, clipping) 17 Helper methods create some common tables (e.g. gamma, clipping)
18 */ 18 */
19 class SK_API SkTableMaskFilter : public SkMaskFilter { 19 class SK_API SkTableMaskFilter : public SkMaskFilter {
20 typedef SkMaskFilter INHERITED;
21
20 public: 22 public:
21 SkTableMaskFilter(); 23 SkTableMaskFilter();
22 SkTableMaskFilter(const uint8_t table[256]); 24 SkTableMaskFilter(const uint8_t table[256]);
23 virtual ~SkTableMaskFilter(); 25 virtual ~SkTableMaskFilter();
24 26
25 /** Utility that sets the gamma table 27 /** Utility that sets the gamma table
26 */ 28 */
27 static void MakeGammaTable(uint8_t table[256], SkScalar gamma); 29 static void MakeGammaTable(uint8_t table[256], SkScalar gamma);
28 30
29 /** Utility that creates a clipping table: clamps values below min to 0 31 /** Utility that creates a clipping table: clamps values below min to 0
(...skipping 19 matching lines...) Expand all
49 51
50 SkDEVCODE(virtual void toString(SkString* str) const SK_OVERRIDE;) 52 SkDEVCODE(virtual void toString(SkString* str) const SK_OVERRIDE;)
51 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTableMaskFilter) 53 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTableMaskFilter)
52 54
53 protected: 55 protected:
54 SkTableMaskFilter(SkFlattenableReadBuffer& rb); 56 SkTableMaskFilter(SkFlattenableReadBuffer& rb);
55 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; 57 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE;
56 58
57 private: 59 private:
58 uint8_t fTable[256]; 60 uint8_t fTable[256];
59
60 typedef SkMaskFilter INHERITED;
61 }; 61 };
62 62
63 #endif 63 #endif
OLDNEW
« no previous file with comments | « include/effects/SkStippleMaskFilter.h ('k') | include/effects/SkTestImageFilters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698