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

Unified Diff: src/pdf/SkPDFGraphicState.h

Issue 18585002: Implemented transparent gradients (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Variable naming change Created 7 years, 5 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/pdf/SkPDFGraphicState.h
diff --git a/src/pdf/SkPDFGraphicState.h b/src/pdf/SkPDFGraphicState.h
index 64f34f8744ad65d3e8dd976ed13dc6745fc1785e..84c429105e7042a4f3675c1c0fba8780a5d36505 100644
--- a/src/pdf/SkPDFGraphicState.h
+++ b/src/pdf/SkPDFGraphicState.h
@@ -28,6 +28,11 @@ class SkPDFFormXObject;
*/
class SkPDFGraphicState : public SkPDFDict {
public:
+ enum SkPDFSMaskMode {
+ kAlpha_SMaskMode,
+ kLuminosity_SMaskMode
+ };
+
virtual ~SkPDFGraphicState();
virtual void getResources(const SkTSet<SkPDFObject*>& knownResourceObjects,
@@ -51,11 +56,13 @@ public:
/** Make a graphic state that only sets the passed soft mask. The
* reference count of the object is incremented and it is the caller's
* responsibility to unreference it when done.
- * @param sMask The form xobject to use as a soft mask.
- * @param invert Indicates if the alpha of the sMask should be inverted.
+ * @param sMask The form xobject to use as a soft mask.
+ * @param invert Indicates if the alpha of the sMask should be inverted.
+ * @param sMaskMode Whether to use alpha or luminosity for the sMask.
*/
static SkPDFGraphicState* GetSMaskGraphicState(SkPDFFormXObject* sMask,
edisonn 2013/07/17 17:52:24 Nit: not your problem, since the code was like thi
ducky 2013/07/17 22:18:20 Hm - I think get_* is often used in a way that's s
- bool invert);
+ bool invert,
+ SkPDFSMaskMode sMaskMode);
/** Get a graphic state that only unsets the soft mask. The reference
* count of the object is incremented and it is the caller's responsibility

Powered by Google App Engine
This is Rietveld 408576698