Chromium Code Reviews| Index: include/core/SkSurfaceProps.h |
| diff --git a/include/core/SkSurfaceProps.h b/include/core/SkSurfaceProps.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f6651c0480a50def42fa3cdd2b32b01ed620d52d |
| --- /dev/null |
| +++ b/include/core/SkSurfaceProps.h |
| @@ -0,0 +1,37 @@ |
| +/* |
| + * Copyright 2012 Google Inc. |
| + * |
| + * Use of this source code is governed by a BSD-style license that can be |
| + * found in the LICENSE file. |
| + */ |
| + |
| +#ifndef SkSurfaceInfo_DEFINED |
| +#define SkSurfaceInfo_DEFINED |
| + |
| +#include "SkPoint.h" |
| + |
| +enum SkPixelGeometry { |
| + kUnknown_SkPixelGeometry, |
| + kLegacyLCD_SkPixelGeometry, |
|
bungeman-skia
2014/09/15 20:47:13
Throw this in at end and give big scary name and a
|
| + kRGB_H_SkPixelGeometry, |
| + kBGR_H_SkPixelGeometry, |
| + kRGB_V_SkPixelGeometry, |
| + kBGR_V_SkPixelGeometry, |
| +}; |
| + |
| +class SkSurfaceProps { |
| +public: |
| + SkSurfaceProps(); |
| + SkSurfaceProps(int x, int y, uint32_t flags, SkPixelGeometry); |
| + |
| + enum DisallowFlags { |
| + kAntiAlias_DisallowFlag = 1 << 0, |
| + kDither_DisallowFlag = 1 << 1, |
| + }; |
| + |
| + SkIPoint fOrigin; |
|
bsalomon
2014/09/15 20:09:04
Origin needs some explanation.
I'm torn between s
|
| + uint32_t fDisallowFlags; |
| + SkPixelGeometry fPixelGeometry; |
| +}; |
| + |
| +#endif |