summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_renderstatus.cpp
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2016-11-23 07:35:23 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-23 07:35:23 -0800
commit43f382c23c24a7b8214f4ea461623f13e25ca02a (patch)
tree5352b063aaf4faf0cb10bc71b106399e970b7e05 /core/fpdfapi/render/cpdf_renderstatus.cpp
parent171071d5cbf798a64c3c0811a30bd5f3aeea4871 (diff)
downloadpdfium-43f382c23c24a7b8214f4ea461623f13e25ca02a.tar.xz
Move CPDF_ImageRenderer from render_int
Review-Url: https://codereview.chromium.org/2525833002
Diffstat (limited to 'core/fpdfapi/render/cpdf_renderstatus.cpp')
-rw-r--r--core/fpdfapi/render/cpdf_renderstatus.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/fpdfapi/render/cpdf_renderstatus.cpp b/core/fpdfapi/render/cpdf_renderstatus.cpp
index aad9af04e3..7e0d30f286 100644
--- a/core/fpdfapi/render/cpdf_renderstatus.cpp
+++ b/core/fpdfapi/render/cpdf_renderstatus.cpp
@@ -34,6 +34,7 @@
#include "core/fpdfapi/parser/cpdf_document.h"
#include "core/fpdfapi/render/cpdf_charposlist.h"
#include "core/fpdfapi/render/cpdf_docrenderdata.h"
+#include "core/fpdfapi/render/cpdf_imagerenderer.h"
#include "core/fpdfapi/render/cpdf_pagerendercache.h"
#include "core/fpdfapi/render/cpdf_rendercontext.h"
#include "core/fpdfapi/render/cpdf_renderoptions.h"
@@ -1075,7 +1076,8 @@ bool CPDF_RenderStatus::ContinueSingleObject(CPDF_PageObject* pObj,
if (pObj->IsImage()) {
m_pImageRenderer.reset(new CPDF_ImageRenderer);
- if (!m_pImageRenderer->Start(this, pObj, pObj2Device, false)) {
+ if (!m_pImageRenderer->Start(this, pObj, pObj2Device, false,
+ FXDIB_BLEND_NORMAL)) {
if (!m_pImageRenderer->m_Result)
DrawObjWithBackground(pObj, pObj2Device);
m_pImageRenderer.reset();
@@ -1894,7 +1896,7 @@ bool CPDF_RenderStatus::ProcessType3Text(CPDF_TextObject* textobj,
image_matrix.Concat(matrix);
CPDF_ImageRenderer renderer;
if (renderer.Start(this, pType3Char->m_pBitmap.get(), fill_argb, 255,
- &image_matrix, 0, false)) {
+ &image_matrix, 0, false, FXDIB_BLEND_NORMAL)) {
renderer.Continue(nullptr);
}
if (!renderer.m_Result)