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

Unified Diff: src/core/SkXfermodeInterpretation.h

Issue 1159763004: SkPDF: with opaque draws, treat SRC mode as SRC_OVER (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: unify with blitter code Created 5 years, 7 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
« no previous file with comments | « src/core/SkBlitter.cpp ('k') | src/core/SkXfermodeInterpretation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkXfermodeInterpretation.h
diff --git a/src/core/SkXfermodeInterpretation.h b/src/core/SkXfermodeInterpretation.h
new file mode 100644
index 0000000000000000000000000000000000000000..f559b33a7dfe18ccdc63bd36396b68ff53f995c1
--- /dev/null
+++ b/src/core/SkXfermodeInterpretation.h
@@ -0,0 +1,22 @@
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkXfermodeInterpretation_DEFINED
+#define SkXfermodeInterpretation_DEFINED
+
+class SkPaint;
+
+/** By analyzing the paint, we may decide we can take special
+ action. This enum lists our possible actions. */
reed1 2015/05/27 15:45:58 Nit: We use a diff style for comments e.g. /**
+enum SkXfermodeInterpretation {
+ kNormal_SkXfermodeInterpretation, // draw normally
+ kSrcOver_SkXfermodeInterpretation, // draw as if in srcover mode
+ kSkipDrawing_SkXfermodeInterpretation // draw nothing
+};
+SkXfermodeInterpretation SkInterpretXfermode(const SkPaint&, bool dstIsOpaque);
+
+#endif // SkXfermodeInterpretation_DEFINED
« no previous file with comments | « src/core/SkBlitter.cpp ('k') | src/core/SkXfermodeInterpretation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698