diff options
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | src/pdf/SkPDFDevice.cpp | 17 |
2 files changed, 9 insertions, 9 deletions
@@ -11,6 +11,7 @@ # # Please keep the list sorted. +ACCESS CO., LTD. <*@access-company.com> ARM <*@arm.com> Google Inc. <*@google.com> Intel <*@intel.com> diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp index 0f0c38c0b1..d227dd7d1c 100644 --- a/src/pdf/SkPDFDevice.cpp +++ b/src/pdf/SkPDFDevice.cpp @@ -232,15 +232,14 @@ GraphicStateEntry::GraphicStateEntry() : fColor(SK_ColorBLACK), fMatrix.reset(); } -bool GraphicStateEntry::compareInitialState(const GraphicStateEntry& b) { - return fColor == b.fColor && - fShaderIndex == b.fShaderIndex && - fGraphicStateIndex == b.fGraphicStateIndex && - fMatrix == b.fMatrix && - fClipStack == b.fClipStack && - (fTextScaleX == 0 || - b.fTextScaleX == 0 || - (fTextScaleX == b.fTextScaleX && fTextFill == b.fTextFill)); +bool GraphicStateEntry::compareInitialState(const GraphicStateEntry& cur) { + return fColor == cur.fColor && + fShaderIndex == cur.fShaderIndex && + fGraphicStateIndex == cur.fGraphicStateIndex && + fMatrix == cur.fMatrix && + fClipStack == cur.fClipStack && + (fTextScaleX == 0 || + (fTextScaleX == cur.fTextScaleX && fTextFill == cur.fTextFill)); } class GraphicStackState { |