aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFFontImpl.h
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-08-19 12:26:46 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-19 12:26:46 -0700
commita060eba0836f98902ca078d5f9fc6191ba0c0a52 (patch)
treee7ea42436a780f5b85005da1bf511dd20a6bf1b0 /src/pdf/SkPDFFontImpl.h
parent216b643fc77e754a3fabbb0ed397e7cf55d1954d (diff)
SkPDF: Simplify PDFStream / emitObject() const
Compress SkPDFStream's data on setData(), not emitObject(); no longer stateful. SkPDFObject::emitObject is now const. This makes it easier to reason about state. Minimal performance gains. Review URL: https://codereview.chromium.org/1304493002
Diffstat (limited to 'src/pdf/SkPDFFontImpl.h')
-rw-r--r--src/pdf/SkPDFFontImpl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pdf/SkPDFFontImpl.h b/src/pdf/SkPDFFontImpl.h
index cc7a4a1fd5..6147ad5a48 100644
--- a/src/pdf/SkPDFFontImpl.h
+++ b/src/pdf/SkPDFFontImpl.h
@@ -18,9 +18,9 @@ public:
virtual bool multiByteGlyphs() const { return true; }
virtual SkPDFFont* getFontSubset(const SkPDFGlyphSet* usage);
#ifdef SK_DEBUG
- virtual void emitObject(SkWStream*,
- const SkPDFObjNumMap&,
- const SkPDFSubstituteMap&);
+ void emitObject(SkWStream*,
+ const SkPDFObjNumMap&,
+ const SkPDFSubstituteMap&) const override;
#endif
private: