| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
| 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 SkSurfaceProps_DEFINED | 8 #ifndef SkSurfaceProps_DEFINED |
| 9 #define SkSurfaceProps_DEFINED | 9 #define SkSurfaceProps_DEFINED |
| 10 | 10 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 kDisallowDither_Flag = 1 << 1, | 55 kDisallowDither_Flag = 1 << 1, |
| 56 kUseDistanceFieldFonts_Flag = 1 << 2, | 56 kUseDistanceFieldFonts_Flag = 1 << 2, |
| 57 }; | 57 }; |
| 58 SkSurfaceProps(uint32_t flags, SkPixelGeometry); | 58 SkSurfaceProps(uint32_t flags, SkPixelGeometry); |
| 59 | 59 |
| 60 enum InitType { | 60 enum InitType { |
| 61 kLegacyFontHost_InitType | 61 kLegacyFontHost_InitType |
| 62 }; | 62 }; |
| 63 SkSurfaceProps(InitType); | 63 SkSurfaceProps(InitType); |
| 64 SkSurfaceProps(uint32_t flags, InitType); | 64 SkSurfaceProps(uint32_t flags, InitType); |
| 65 SkSurfaceProps(const SkSurfaceProps& other); |
| 65 | 66 |
| 66 uint32_t flags() const { return fFlags; } | 67 uint32_t flags() const { return fFlags; } |
| 67 SkPixelGeometry pixelGeometry() const { return fPixelGeometry; } | 68 SkPixelGeometry pixelGeometry() const { return fPixelGeometry; } |
| 68 | 69 |
| 69 bool isDisallowAA() const { return SkToBool(fFlags & kDisallowAntiAlias_Flag
); } | 70 bool isDisallowAA() const { return SkToBool(fFlags & kDisallowAntiAlias_Flag
); } |
| 70 bool isDisallowDither() const { return SkToBool(fFlags & kDisallowDither_Fla
g); } | 71 bool isDisallowDither() const { return SkToBool(fFlags & kDisallowDither_Fla
g); } |
| 71 bool isUseDistanceFieldFonts() const { return SkToBool(fFlags & kUseDistance
FieldFonts_Flag); } | 72 bool isUseDistanceFieldFonts() const { return SkToBool(fFlags & kUseDistance
FieldFonts_Flag); } |
| 72 | 73 |
| 73 private: | 74 private: |
| 74 SkSurfaceProps(); | 75 SkSurfaceProps(); |
| 75 | 76 |
| 76 uint32_t fFlags; | 77 uint32_t fFlags; |
| 77 SkPixelGeometry fPixelGeometry; | 78 SkPixelGeometry fPixelGeometry; |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 #endif | 81 #endif |
| OLD | NEW |