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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 SkSurfaceProps(uint32_t flags, InitType); | 64 SkSurfaceProps(uint32_t flags, InitType); |
65 SkSurfaceProps(const SkSurfaceProps& other); | 65 SkSurfaceProps(const SkSurfaceProps& other); |
66 | 66 |
67 uint32_t flags() const { return fFlags; } | 67 uint32_t flags() const { return fFlags; } |
68 SkPixelGeometry pixelGeometry() const { return fPixelGeometry; } | 68 SkPixelGeometry pixelGeometry() const { return fPixelGeometry; } |
69 | 69 |
70 bool isDisallowAA() const { return SkToBool(fFlags & kDisallowAntiAlias_Flag
); } | 70 bool isDisallowAA() const { return SkToBool(fFlags & kDisallowAntiAlias_Flag
); } |
71 bool isDisallowDither() const { return SkToBool(fFlags & kDisallowDither_Fla
g); } | 71 bool isDisallowDither() const { return SkToBool(fFlags & kDisallowDither_Fla
g); } |
72 bool isUseDistanceFieldFonts() const { return SkToBool(fFlags & kUseDistance
FieldFonts_Flag); } | 72 bool isUseDistanceFieldFonts() const { return SkToBool(fFlags & kUseDistance
FieldFonts_Flag); } |
73 | 73 |
| 74 // TODO: remove this entry point |
| 75 void setPixelGeometry_dont_use(SkPixelGeometry geo) { fPixelGeometry = geo;
} |
| 76 |
74 private: | 77 private: |
75 SkSurfaceProps(); | 78 SkSurfaceProps(); |
76 | 79 |
77 uint32_t fFlags; | 80 uint32_t fFlags; |
78 SkPixelGeometry fPixelGeometry; | 81 SkPixelGeometry fPixelGeometry; |
79 }; | 82 }; |
80 | 83 |
81 #endif | 84 #endif |
OLD | NEW |