Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(447)

Side by Side Diff: core/fpdfapi/render/cpdf_renderstatus.h

Issue 2520073003: handle antialiased rendering as premultiplied (Closed)
Patch Set: more work on premultiplied mismatch Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | core/fpdfapi/render/cpdf_renderstatus.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef CORE_FPDFAPI_RENDER_CPDF_RENDERSTATUS_H_ 7 #ifndef CORE_FPDFAPI_RENDER_CPDF_RENDERSTATUS_H_
8 #define CORE_FPDFAPI_RENDER_CPDF_RENDERSTATUS_H_ 8 #define CORE_FPDFAPI_RENDER_CPDF_RENDERSTATUS_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void RenderSingleObject(CPDF_PageObject* pObj, const CFX_Matrix* pObj2Device); 59 void RenderSingleObject(CPDF_PageObject* pObj, const CFX_Matrix* pObj2Device);
60 bool ContinueSingleObject(CPDF_PageObject* pObj, 60 bool ContinueSingleObject(CPDF_PageObject* pObj,
61 const CFX_Matrix* pObj2Device, 61 const CFX_Matrix* pObj2Device,
62 IFX_Pause* pPause); 62 IFX_Pause* pPause);
63 CPDF_RenderContext* GetContext() { return m_pContext; } 63 CPDF_RenderContext* GetContext() { return m_pContext; }
64 64
65 #if defined _SKIA_SUPPORT_ 65 #if defined _SKIA_SUPPORT_
66 void DebugVerifyDeviceIsPreMultiplied() const; 66 void DebugVerifyDeviceIsPreMultiplied() const;
67 #endif 67 #endif
68 68
69 #if defined _SKIA_SUPPORT_PATHS_
70 void UnPreMultiplyDevice();
71 #endif
72
73 CPDF_RenderOptions m_Options; 69 CPDF_RenderOptions m_Options;
74 CPDF_Dictionary* m_pFormResource; 70 CPDF_Dictionary* m_pFormResource;
75 CPDF_Dictionary* m_pPageResource; 71 CPDF_Dictionary* m_pPageResource;
76 CFX_ArrayTemplate<CPDF_Type3Font*> m_Type3FontCache; 72 CFX_ArrayTemplate<CPDF_Type3Font*> m_Type3FontCache;
77 73
78 private: 74 private:
79 friend class CPDF_ImageRenderer; 75 friend class CPDF_ImageRenderer;
80 friend class CPDF_RenderContext; 76 friend class CPDF_RenderContext;
81 77
82 void ProcessClipPath(CPDF_ClipPath ClipPath, const CFX_Matrix* pObj2Device); 78 void ProcessClipPath(CPDF_ClipPath ClipPath, const CFX_Matrix* pObj2Device);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 bool m_bDropObjects; 169 bool m_bDropObjects;
174 bool m_bStdCS; 170 bool m_bStdCS;
175 uint32_t m_GroupFamily; 171 uint32_t m_GroupFamily;
176 bool m_bLoadMask; 172 bool m_bLoadMask;
177 CPDF_Type3Char* m_pType3Char; 173 CPDF_Type3Char* m_pType3Char;
178 FX_ARGB m_T3FillColor; 174 FX_ARGB m_T3FillColor;
179 int m_curBlend; 175 int m_curBlend;
180 }; 176 };
181 177
182 #endif // CORE_FPDFAPI_RENDER_CPDF_RENDERSTATUS_H_ 178 #endif // CORE_FPDFAPI_RENDER_CPDF_RENDERSTATUS_H_
OLDNEW
« no previous file with comments | « no previous file | core/fpdfapi/render/cpdf_renderstatus.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698