summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_rendercontext.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-05 10:27:45 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-05 17:04:57 +0000
commit4ce4f5f8ab0b25ac10a5c66cac1a8c281e24a69b (patch)
tree7853cdd1e63d94c01b1893fef0722433400033a9 /core/fpdfapi/render/cpdf_rendercontext.cpp
parent645e78a1152b035fb83ac5bbe93715b54f11a1b6 (diff)
downloadpdfium-4ce4f5f8ab0b25ac10a5c66cac1a8c281e24a69b.tar.xz
Cleanup CPDF_RenderStatus
This CL removes friend classes and moves public members to be private in the CPDF_RenderStatus class. Change-Id: Icdd6291bb8c1e5f43386d4a939b1eeaa16b8886d Reviewed-on: https://pdfium-review.googlesource.com/15530 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_rendercontext.cpp')
-rw-r--r--core/fpdfapi/render/cpdf_rendercontext.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/fpdfapi/render/cpdf_rendercontext.cpp b/core/fpdfapi/render/cpdf_rendercontext.cpp
index 3c08295480..2fc7da812d 100644
--- a/core/fpdfapi/render/cpdf_rendercontext.cpp
+++ b/core/fpdfapi/render/cpdf_rendercontext.cpp
@@ -78,9 +78,11 @@ void CPDF_RenderContext::Render(CFX_RenderDevice* pDevice,
nullptr);
status.RenderObjectList(layer.m_pObjectHolder.Get(), &layer.m_Matrix);
}
- if (status.m_Options.m_Flags & RENDER_LIMITEDIMAGECACHE)
- m_pPageCache->CacheOptimization(status.m_Options.m_dwLimitCacheSize);
- if (status.m_bStopped)
+ if (status.GetRenderOptions()->m_Flags & RENDER_LIMITEDIMAGECACHE) {
+ m_pPageCache->CacheOptimization(
+ status.GetRenderOptions()->m_dwLimitCacheSize);
+ }
+ if (status.IsStopped())
break;
}
}