| 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,
|
| - 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
|
|
|