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

Unified Diff: src/core/SkXfer4f.h

Issue 1642703003: starter procs for blending with pm4f (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: int to float Created 4 years, 11 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: src/core/SkXfer4f.h
diff --git a/src/core/SkXfer4f.h b/src/core/SkXfer4f.h
new file mode 100644
index 0000000000000000000000000000000000000000..fd6657f1c21df18e1e098eb781a200e5dab44c6c
--- /dev/null
+++ b/src/core/SkXfer4f.h
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkXfermodePriv_DEFINED
+#define SkXfermodePriv_DEFINED
+
+#include "SkXfermode.h"
+
+enum SkXfef4fFlags {
+ kSrcIsOpaque_SkXfer4fFlag = 1 << 0,
+ kDstIsSRGB_SkXfer4fFlag = 1 << 1,
+};
+
+typedef void (*SkPM4fXfer1Proc)(uint32_t dst[], const SkPM4f& src, int count);
+typedef void (*SkPM4fXferNProc)(uint32_t dst[], const SkPM4f src[], int count);
+
+SkPM4fXfer1Proc SkPM4fXfer1ProcFactory(SkXfermode::Mode, uint32_t flags);
+SkPM4fXferNProc SkPM4fXferNProcFactory(SkXfermode::Mode, uint32_t flags);
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698