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

Unified Diff: experimental/PdfViewer/SkPdfBasics.cpp

Issue 21288002: pdfviewer: (in progress, uploaded for backup): transparency groups - isolated and knockout flags (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: 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
« no previous file with comments | « experimental/PdfViewer/PdfReference-okular-1.txt ('k') | experimental/PdfViewer/SkPdfRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/SkPdfBasics.cpp
===================================================================
--- experimental/PdfViewer/SkPdfBasics.cpp (revision 10403)
+++ experimental/PdfViewer/SkPdfBasics.cpp (working copy)
@@ -28,8 +28,13 @@
paint->setStrokeWidth(SkDoubleToScalar(fLineWidth));
// TODO(edisonn): perf, two sets of allocs, create SkDashPathEffect constr that takes ownership
// of the intervals
- if (fDashArrayLength > 0 && fDashPhase > 0) {
+ if (fDashArrayLength > 0) {
paint->setPathEffect(new SkDashPathEffect(fDashArray, fDashArrayLength, fDashPhase))->unref();
}
}
+
+ // TODO(edisonn): NYI multiple blend modes
+ if (fBlendModesLength == 1 && fBlendModes[0] != SkXfermode::kSrc_Mode) {
+ paint->setXfermodeMode(fBlendModes[0]);
+ }
}
« no previous file with comments | « experimental/PdfViewer/PdfReference-okular-1.txt ('k') | experimental/PdfViewer/SkPdfRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698