diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-24 23:52:24 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-24 23:52:24 +0000 |
commit | 030bfc05d3460eabaa059f9561897cc1279bd60f (patch) | |
tree | acc7d85e6e29c8c368a4312805e302ae66bf2d60 /core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp | |
parent | b093c688eca06d43385cdc3aff2d0ba7395dbcc9 (diff) | |
download | pdfium-030bfc05d3460eabaa059f9561897cc1279bd60f.tar.xz |
Remove FXDIB_BLEND_UNSUPPORTED.
The blend mode is never set to this value.
Change-Id: I96cbadb055137a9de45f0082c81a7b8aedb9a427
Reviewed-on: https://pdfium-review.googlesource.com/c/44544
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp')
-rw-r--r-- | core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp b/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp index 4ae5631534..b29d5b30b6 100644 --- a/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp +++ b/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp @@ -439,8 +439,7 @@ void CPDF_PageContentGenerator::ProcessGraphics(std::ostringstream* buf, graphD.strokeAlpha = pPageObj->m_GeneralState.GetStrokeAlpha(); graphD.blendType = pPageObj->m_GeneralState.GetBlendType(); if (graphD.fillAlpha == 1.0f && graphD.strokeAlpha == 1.0f && - (graphD.blendType == FXDIB_BLEND_UNSUPPORTED || - graphD.blendType == FXDIB_BLEND_NORMAL)) { + graphD.blendType == FXDIB_BLEND_NORMAL) { return; } @@ -456,8 +455,7 @@ void CPDF_PageContentGenerator::ProcessGraphics(std::ostringstream* buf, if (graphD.strokeAlpha != 1.0f) gsDict->SetNewFor<CPDF_Number>("CA", graphD.strokeAlpha); - if (graphD.blendType != FXDIB_BLEND_UNSUPPORTED && - graphD.blendType != FXDIB_BLEND_NORMAL) { + if (graphD.blendType != FXDIB_BLEND_NORMAL) { gsDict->SetNewFor<CPDF_Name>("BM", pPageObj->m_GeneralState.GetBlendMode()); } |