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

Side by Side Diff: include/core/SkUnitMapper.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/core/SkShader.h ('k') | include/core/SkXfermode.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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkUnitMapper_DEFINED 10 #ifndef SkUnitMapper_DEFINED
11 #define SkUnitMapper_DEFINED 11 #define SkUnitMapper_DEFINED
12 12
13 #include "SkRefCnt.h" 13 #include "SkRefCnt.h"
14 #include "SkScalar.h" 14 #include "SkScalar.h"
15 15
16 #include "SkFlattenable.h" 16 #include "SkFlattenable.h"
17 17
18 class SkUnitMapper : public SkFlattenable { 18 class SkUnitMapper : public SkFlattenable {
19 typedef SkFlattenable INHERITED;
20
19 public: 21 public:
20 SK_DECLARE_INST_COUNT(SkUnitMapper) 22 SK_DECLARE_INST_COUNT(SkUnitMapper)
21 23
22 SkUnitMapper() {} 24 SkUnitMapper() {}
23 25
24 /** Given a value in [0..0xFFFF], return a value in the same range. 26 /** Given a value in [0..0xFFFF], return a value in the same range.
25 */ 27 */
26 virtual uint16_t mapUnit16(uint16_t x) = 0; 28 virtual uint16_t mapUnit16(uint16_t x) = 0;
27 29
28 protected: 30 protected:
29 SkUnitMapper(SkFlattenableReadBuffer& rb) : SkFlattenable(rb) {} 31 SkUnitMapper(SkFlattenableReadBuffer& rb) : SkFlattenable(rb) {}
30
31 private:
32 typedef SkFlattenable INHERITED;
33 }; 32 };
34 33
35 #endif 34 #endif
OLDNEW
« no previous file with comments | « include/core/SkShader.h ('k') | include/core/SkXfermode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698