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

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

Issue 2546803003: re-enable skia caching (Closed)
Patch Set: remove nullptr 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/fpdfapi/render/cpdf_renderstatus.cpp ('k') | core/fxge/ge/cfx_renderdevice.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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 int nFlag); 220 int nFlag);
221 221
222 #ifdef _SKIA_SUPPORT_ 222 #ifdef _SKIA_SUPPORT_
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 #endif
231 #if defined _SKIA_SUPPORT_ || defined _SKIA_SUPPORT_PATHS_
230 void Flush(); 232 void Flush();
231 #endif 233 #endif
232 234
233 private: 235 private:
234 void InitDeviceInfo(); 236 void InitDeviceInfo();
235 void UpdateClipBox(); 237 void UpdateClipBox();
236 bool DrawFillStrokePath(const CFX_PathData* pPathData, 238 bool DrawFillStrokePath(const CFX_PathData* pPathData,
237 const CFX_Matrix* pObject2Device, 239 const CFX_Matrix* pObject2Device,
238 const CFX_GraphStateData* pGraphState, 240 const CFX_GraphStateData* pGraphState,
239 uint32_t fill_color, 241 uint32_t fill_color,
240 uint32_t stroke_color, 242 uint32_t stroke_color,
241 int fill_mode, 243 int fill_mode,
242 int blend_type); 244 int blend_type);
243 245
244 CFX_DIBitmap* m_pBitmap; 246 CFX_DIBitmap* m_pBitmap;
245 int m_Width; 247 int m_Width;
246 int m_Height; 248 int m_Height;
247 int m_bpp; 249 int m_bpp;
248 int m_RenderCaps; 250 int m_RenderCaps;
249 int m_DeviceClass; 251 int m_DeviceClass;
250 FX_RECT m_ClipBox; 252 FX_RECT m_ClipBox;
251 std::unique_ptr<IFX_RenderDeviceDriver> m_pDeviceDriver; 253 std::unique_ptr<IFX_RenderDeviceDriver> m_pDeviceDriver;
252 }; 254 };
253 255
254 #endif // CORE_FXGE_CFX_RENDERDEVICE_H_ 256 #endif // CORE_FXGE_CFX_RENDERDEVICE_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/render/cpdf_renderstatus.cpp ('k') | core/fxge/ge/cfx_renderdevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698