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

Side by Side Diff: core/src/fxge/skia/fx_skia_blitter_new.h

Issue 1088733002: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase. Created 5 years, 8 months 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/src/fxge/ge/text_int.h ('k') | core/src/fxge/skia/fx_skia_device.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 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef _FX_SKIABLITTER_H_ 5 #ifndef _FX_SKIABLITTER_H_
6 #define _FX_SKIABLITTER_H_ 6 #define _FX_SKIABLITTER_H_
7 //#define _SKIA_SUPPORT_ 7 //#define _SKIA_SUPPORT_
8 #if defined(_SKIA_SUPPORT_) 8 #if defined(_SKIA_SUPPORT_)
9 class CFX_SkiaRenderer : public SkBlitter, public CFX_Object 9 class CFX_SkiaRenderer : public SkBlitter
10 { 10 {
11 protected: 11 protected:
12 int m_Alpha, 12 int m_Alpha,
13 m_Red, // Or the complementary-color, C yan 13 m_Red, // Or the complementary-color, C yan
14 m_Green, // Magenta 14 m_Green, // Magenta
15 m_Blue, // Yellow 15 m_Blue, // Yellow
16 m_Gray; // Black 16 m_Gray; // Black
17 FX_DWORD m_Color; // FX_ARGB or FX_CMYK 17 FX_DWORD m_Color; // FX_ARGB or FX_CMYK
18 FX_BOOL m_bFullCover; 18 FX_BOOL m_bFullCover;
19 int m_ProcessFilter; 19 int m_ProcessFilter;
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 void CompositeSpanCMYK(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, 201 void CompositeSpanCMYK(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp,
202 int span_left, int span_len, int span_top, FX_BYTE cover _scan, 202 int span_left, int span_len, int span_top, FX_BYTE cover _scan,
203 int clip_top, int clip_left, int clip_right, FX_LPBYTE c lip_scan, 203 int clip_top, int clip_left, int clip_right, FX_LPBYTE c lip_scan,
204 FX_LPBYTE dest_extra_alpha_scan); 204 FX_LPBYTE dest_extra_alpha_scan);
205 205
206 206
207 //-------------------------------------------------------------------- 207 //--------------------------------------------------------------------
208 FX_BOOL Init(CFX_DIBitmap* pDevice, CFX_DIBitmap* pOriDevice, const CFX_ ClipRgn* pClipRgn, FX_DWORD color, FX_BOOL bFullCover, FX_BOOL bRgbByteOrder, 208 FX_BOOL Init(CFX_DIBitmap* pDevice, CFX_DIBitmap* pOriDevice, const CFX_ ClipRgn* pClipRgn, FX_DWORD color, FX_BOOL bFullCover, FX_BOOL bRgbByteOrder,
209 int alpha_flag = 0, void* pIccTransform = NULL); //The alpha fla g must be fill_flag if exist. 209 int alpha_flag = 0, void* pIccTransform = NULL); //The alpha fla g must be fill_flag if exist.
210 }; 210 };
211 class CFX_SkiaA8Renderer : public SkBlitter, public CFX_Object 211 class CFX_SkiaA8Renderer : public SkBlitter
212 { 212 {
213 public: 213 public:
214 //-------------------------------------------------------------------- 214 //--------------------------------------------------------------------
215 virtual void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_ t runs[]); 215 virtual void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_ t runs[]);
216 virtual void blitH(int x, int y, int width); 216 virtual void blitH(int x, int y, int width);
217 virtual void blitV(int x, int y, int height, SkAlpha alpha); 217 virtual void blitV(int x, int y, int height, SkAlpha alpha);
218 virtual void blitRect(int x, int y, int width, int height); 218 virtual void blitRect(int x, int y, int width, int height);
219 virtual void blitAntiRect(int x, int y, int width, int height, SkAlpha l eftAlpha, SkAlpha rightAlpha); 219 virtual void blitAntiRect(int x, int y, int width, int height, SkAlpha l eftAlpha, SkAlpha rightAlpha);
220 //-------------------------------------------------------------------- 220 //--------------------------------------------------------------------
221 FX_BOOL Init(CFX_DIBitmap* pDevice, int Left, int Top); 221 FX_BOOL Init(CFX_DIBitmap* pDevice, int Left, int Top);
222 CFX_DIBitmap* m_pDevice; 222 CFX_DIBitmap* m_pDevice;
223 int m_Left; 223 int m_Left;
224 int m_Top; 224 int m_Top;
225 int m_dstWidth; 225 int m_dstWidth;
226 int m_dstHeight; 226 int m_dstHeight;
227 }; 227 };
228 #endif 228 #endif
229 #endif 229 #endif
OLDNEW
« no previous file with comments | « core/src/fxge/ge/text_int.h ('k') | core/src/fxge/skia/fx_skia_device.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698