Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Unified Diff: include/core/SkSurfaceProps.h

Issue 551463004: introduce Props to surface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: handle dither and aa at the canvas level Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698