| Index: src/pdf/SkPDFDevice.cpp
|
| diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
|
| index ff83aadeee7b8a27b71b52542625947553dbb8a2..c8074fa76e5163c647386f18eedabac286823cb0 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 {
|
|
|