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

Unified Diff: src/pdf/SkPDFGraphicState.h

Issue 944643002: PDF: Now threadsafe! (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: TODO=DONE Created 5 years, 10 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/pdf/SkPDFFontImpl.h ('k') | src/pdf/SkPDFGraphicState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFGraphicState.h
diff --git a/src/pdf/SkPDFGraphicState.h b/src/pdf/SkPDFGraphicState.h
index a759d56b9f6585b82f6b26aa294a01c7563e50df..b26e4a00cba4cd8df5aa902d3206d1e750cd2600 100644
--- a/src/pdf/SkPDFGraphicState.h
+++ b/src/pdf/SkPDFGraphicState.h
@@ -47,7 +47,8 @@ public:
* other references.
* @param paint The SkPaint to emulate.
*/
- static SkPDFGraphicState* GetGraphicStateForPaint(const SkPaint& paint);
+ static SkPDFGraphicState* GetGraphicStateForPaint(SkPDFCanon* canon,
+ const SkPaint& paint);
/** 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
@@ -74,12 +75,12 @@ public:
static SkPDFGraphicState* CreateNoSMaskGraphicState();
private:
+ SkPDFCanon* const fCanon;
const SkPaint fPaint;
bool fPopulated;
- bool fSMask;
SkPDFGraphicState();
- explicit SkPDFGraphicState(const SkPaint& paint);
+ SkPDFGraphicState(SkPDFCanon* canon, const SkPaint& paint);
void populateDict();
« no previous file with comments | « src/pdf/SkPDFFontImpl.h ('k') | src/pdf/SkPDFGraphicState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698