OLD | NEW |
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_SKIA_BLITTER_NEW_H_ |
6 #define _FX_SKIABLITTER_H_ | 6 #define FX_SKIA_BLITTER_NEW_H_ |
7 //#define _SKIA_SUPPORT_ | 7 |
8 #if defined(_SKIA_SUPPORT_) | 8 #if defined(_SKIA_SUPPORT_) |
9 class CFX_SkiaRenderer : public SkBlitter | 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 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
| 230 #endif // FX_SKIA_BLITTER_NEW_H_ |
OLD | NEW |