OLD | NEW |
---|---|
(Empty) | |
1 /* | |
robertphillips
2014/09/16 14:15:18
2014 ?
reed1
2014/09/16 18:16:01
Done.
| |
2 * Copyright 2012 Google Inc. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license that can be | |
5 * found in the LICENSE file. | |
6 */ | |
7 | |
robertphillips
2014/09/16 14:15:18
SkSurfaceProps_DEFINED ?
reed1
2014/09/16 18:16:01
Done.
| |
8 #ifndef SkSurfaceInfo_DEFINED | |
9 #define SkSurfaceInfo_DEFINED | |
10 | |
11 #include "SkPoint.h" | |
12 | |
robertphillips
2014/09/16 14:15:17
// informative comment ?
reed1
2014/09/16 18:16:01
Done.
| |
13 enum SkPixelGeometry { | |
14 kUnknown_SkPixelGeometry, | |
15 kLegacyLCD_SkPixelGeometry, | |
16 kRGB_H_SkPixelGeometry, | |
17 kBGR_H_SkPixelGeometry, | |
18 kRGB_V_SkPixelGeometry, | |
19 kBGR_V_SkPixelGeometry, | |
20 }; | |
21 | |
robertphillips
2014/09/16 14:15:18
// The surface properties class allows a client to
reed1
2014/09/16 18:16:01
Done.
| |
22 class SkSurfaceProps { | |
23 public: | |
24 SkSurfaceProps(); | |
25 SkSurfaceProps(int x, int y, uint32_t flags, SkPixelGeometry); | |
26 | |
27 enum DisallowFlags { | |
28 kAntiAlias_DisallowFlag = 1 << 0, | |
29 kDither_DisallowFlag = 1 << 1, | |
30 }; | |
31 | |
32 SkIPoint fOrigin; | |
33 uint32_t fDisallowFlags; | |
34 SkPixelGeometry fPixelGeometry; | |
35 }; | |
36 | |
37 #endif | |
OLD | NEW |