pdfviewer: more plumming for soft masks, blend modes and transparency groups

Review URL: https://codereview.chromium.org/21125002

git-svn-id: http://skia.googlecode.com/svn/trunk@10419 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/PdfViewer/SkPdfBasics.h b/experimental/PdfViewer/SkPdfBasics.h
index 74ab9e6..30c92b6 100644
--- a/experimental/PdfViewer/SkPdfBasics.h
+++ b/experimental/PdfViewer/SkPdfBasics.h
@@ -189,7 +189,8 @@
                                 transparency group XObject (see Section 7.5.5, “Transparency
                                 Group XObjects”). Initial value: Normal.
  */
-    SkXfermode::Mode fBlendMode;
+    SkXfermode::Mode fBlendModes[256];
+    int fBlendModesLength;
 
 /*
 soft mask         dictionary    (PDF 1.4) A soft-mask dictionary (see “Soft-Mask Dictionaries” on
@@ -327,7 +328,8 @@
         fAlphaSource  = false;
         fDashArrayLength = 0;
         fDashPhase    = 0;
-        fBlendMode    = SkXfermode::kSrc_Mode;  // PDF: Normal Blend mode
+        fBlendModesLength = 1;
+        fBlendModes[0] = SkXfermode::kSrc_Mode;  // PDF: Normal Blend mode
     }
 
     // TODO(edisonn): make two functons instead, stroking and non stoking, avoid branching