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 @@ |
+/* |
robertphillips
2014/09/16 14:15:18
2014 ?
reed1
2014/09/16 18:16:01
Done.
|
+ * Copyright 2012 Google Inc. |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
robertphillips
2014/09/16 14:15:18
SkSurfaceProps_DEFINED ?
reed1
2014/09/16 18:16:01
Done.
|
+#ifndef SkSurfaceInfo_DEFINED |
+#define SkSurfaceInfo_DEFINED |
+ |
+#include "SkPoint.h" |
+ |
robertphillips
2014/09/16 14:15:17
// informative comment ?
reed1
2014/09/16 18:16:01
Done.
|
+enum SkPixelGeometry { |
+ kUnknown_SkPixelGeometry, |
+ kLegacyLCD_SkPixelGeometry, |
+ kRGB_H_SkPixelGeometry, |
+ kBGR_H_SkPixelGeometry, |
+ kRGB_V_SkPixelGeometry, |
+ kBGR_V_SkPixelGeometry, |
+}; |
+ |
robertphillips
2014/09/16 14:15:18
// The surface properties class allows a client to
reed1
2014/09/16 18:16:01
Done.
|
+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; |
+ uint32_t fDisallowFlags; |
+ SkPixelGeometry fPixelGeometry; |
+}; |
+ |
+#endif |