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

Unified Diff: include/core/SkSurfaceProps.h

Issue 551463004: introduce Props to surface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: un-plumb props into device (not needed) 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 @@
+/*
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

Powered by Google App Engine
This is Rietveld 408576698