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

Side by Side Diff: core/fxge/cfx_renderdevice.h

Issue 2520073003: handle antialiased rendering as premultiplied (Closed)
Patch Set: more work on premultiplied mismatch Created 4 years 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 | « core/fxge/cfx_fxgedevice.h ('k') | core/fxge/dib/fx_dib_main.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_FXGE_CFX_RENDERDEVICE_H_ 7 #ifndef CORE_FXGE_CFX_RENDERDEVICE_H_
8 #define CORE_FXGE_CFX_RENDERDEVICE_H_ 8 #define CORE_FXGE_CFX_RENDERDEVICE_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 virtual void DebugVerifyBitmapIsPreMultiplied() const; 223 virtual void DebugVerifyBitmapIsPreMultiplied() const;
224 virtual bool SetBitsWithMask(const CFX_DIBSource* pBitmap, 224 virtual bool SetBitsWithMask(const CFX_DIBSource* pBitmap,
225 const CFX_DIBSource* pMask, 225 const CFX_DIBSource* pMask,
226 int left, 226 int left,
227 int top, 227 int top,
228 int bitmap_alpha, 228 int bitmap_alpha,
229 int blend_type); 229 int blend_type);
230 void Flush(); 230 void Flush();
231 #endif 231 #endif
232 232
233 #ifdef _SKIA_SUPPORT_PATHS_
234 virtual void UnPreMultiplyDevice();
235 #endif
236
237 private: 233 private:
238 void InitDeviceInfo(); 234 void InitDeviceInfo();
239 void UpdateClipBox(); 235 void UpdateClipBox();
240 bool DrawFillStrokePath(const CFX_PathData* pPathData, 236 bool DrawFillStrokePath(const CFX_PathData* pPathData,
241 const CFX_Matrix* pObject2Device, 237 const CFX_Matrix* pObject2Device,
242 const CFX_GraphStateData* pGraphState, 238 const CFX_GraphStateData* pGraphState,
243 uint32_t fill_color, 239 uint32_t fill_color,
244 uint32_t stroke_color, 240 uint32_t stroke_color,
245 int fill_mode, 241 int fill_mode,
246 int blend_type); 242 int blend_type);
247 243
248 CFX_DIBitmap* m_pBitmap; 244 CFX_DIBitmap* m_pBitmap;
249 int m_Width; 245 int m_Width;
250 int m_Height; 246 int m_Height;
251 int m_bpp; 247 int m_bpp;
252 int m_RenderCaps; 248 int m_RenderCaps;
253 int m_DeviceClass; 249 int m_DeviceClass;
254 FX_RECT m_ClipBox; 250 FX_RECT m_ClipBox;
255 std::unique_ptr<IFX_RenderDeviceDriver> m_pDeviceDriver; 251 std::unique_ptr<IFX_RenderDeviceDriver> m_pDeviceDriver;
256 }; 252 };
257 253
258 #endif // CORE_FXGE_CFX_RENDERDEVICE_H_ 254 #endif // CORE_FXGE_CFX_RENDERDEVICE_H_
OLDNEW
« no previous file with comments | « core/fxge/cfx_fxgedevice.h ('k') | core/fxge/dib/fx_dib_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698