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

Side by Side Diff: include/core/SkUnitMapper.h

Issue 134163010: Refactor read and write buffers. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: original write flags were fine Created 6 years, 10 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
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
(...skipping 10 matching lines...) Expand all
21 21
22 SkUnitMapper() {} 22 SkUnitMapper() {}
23 23
24 /** Given a value in [0..0xFFFF], return a value in the same range. 24 /** Given a value in [0..0xFFFF], return a value in the same range.
25 */ 25 */
26 virtual uint16_t mapUnit16(uint16_t x) = 0; 26 virtual uint16_t mapUnit16(uint16_t x) = 0;
27 27
28 SK_DEFINE_FLATTENABLE_TYPE(SkUnitMapper) 28 SK_DEFINE_FLATTENABLE_TYPE(SkUnitMapper)
29 29
30 protected: 30 protected:
31 SkUnitMapper(SkFlattenableReadBuffer& rb) : SkFlattenable(rb) {} 31 SkUnitMapper(SkReadBuffer& rb) : SkFlattenable(rb) {}
32 32
33 private: 33 private:
34 typedef SkFlattenable INHERITED; 34 typedef SkFlattenable INHERITED;
35 }; 35 };
36 36
37 #endif 37 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698