| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 The Android Open Source Project | 2 * Copyright 2010 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 SkDevice_DEFINED | 8 #ifndef SkDevice_DEFINED |
| 9 #define SkDevice_DEFINED | 9 #define SkDevice_DEFINED |
| 10 | 10 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 #endif | 131 #endif |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 protected: | 134 protected: |
| 135 enum Usage { | 135 enum Usage { |
| 136 kGeneral_Usage, | 136 kGeneral_Usage, |
| 137 kSaveLayer_Usage // <! internal use only | 137 kSaveLayer_Usage // <! internal use only |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 struct TextFlags { | 140 struct TextFlags { |
| 141 uint32_t fFlags; // SkPaint::getFlags() | 141 uint32_t fFlags; // SkPaint::getFlags() |
| 142 SkPaint::Hinting fHinting; | |
| 143 }; | 142 }; |
| 144 | 143 |
| 145 /** | 144 /** |
| 146 * Device may filter the text flags for drawing text here. If it wants to | 145 * Device may filter the text flags for drawing text here. If it wants to |
| 147 * make a change to the specified values, it should write them into the | 146 * make a change to the specified values, it should write them into the |
| 148 * textflags parameter (output) and return true. If the paint is fine as | 147 * textflags parameter (output) and return true. If the paint is fine as |
| 149 * is, then ignore the textflags parameter and return false. | 148 * is, then ignore the textflags parameter and return false. |
| 150 */ | 149 */ |
| 151 virtual bool filterTextFlags(const SkPaint& paint, TextFlags*) { return fals
e; } | 150 virtual bool filterTextFlags(const SkPaint& paint, TextFlags*) { return fals
e; } |
| 152 | 151 |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 SkMetaData* fMetaData; | 392 SkMetaData* fMetaData; |
| 394 | 393 |
| 395 #ifdef SK_DEBUG | 394 #ifdef SK_DEBUG |
| 396 bool fAttachedToCanvas; | 395 bool fAttachedToCanvas; |
| 397 #endif | 396 #endif |
| 398 | 397 |
| 399 typedef SkRefCnt INHERITED; | 398 typedef SkRefCnt INHERITED; |
| 400 }; | 399 }; |
| 401 | 400 |
| 402 #endif | 401 #endif |
| OLD | NEW |