diff options
author | halcanary <halcanary@google.com> | 2015-01-21 13:13:22 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-21 13:13:22 -0800 |
commit | e6ea244717feda4265b7062a0462267a0d9e1753 (patch) | |
tree | 4f84137e15889e82303270eb3d50fa97be0e7bb5 /src/pdf/SkPDFGraphicState.h | |
parent | 28b44e8f27bc49d546ee71a610f54bd12c31d943 (diff) |
Use SkLazyPtr in SkPDFGraphicState.cpp
Motivation: currently we rely on mutexes for guarding static
initialization. These mutexes will go away.
Review URL: https://codereview.chromium.org/815223005
Diffstat (limited to 'src/pdf/SkPDFGraphicState.h')
-rw-r--r-- | src/pdf/SkPDFGraphicState.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pdf/SkPDFGraphicState.h b/src/pdf/SkPDFGraphicState.h index cfc80ff548..1c54e6cf21 100644 --- a/src/pdf/SkPDFGraphicState.h +++ b/src/pdf/SkPDFGraphicState.h @@ -73,6 +73,9 @@ public: bool equals(const SkPaint&) const; + // Only public for SK_DECLARE_STATIC_LAZY_PTR + static SkPDFGraphicState* CreateNoSMaskGraphicState(); + private: const SkPaint fPaint; SkTDArray<SkPDFObject*> fResources; |