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 CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ | 5 #ifndef CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ |
6 #define CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ | 6 #define CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ |
7 | 7 |
8 #if defined(_SKIA_SUPPORT_) | 8 #if defined(_SKIA_SUPPORT_) |
9 | 9 |
10 #include "core/fxge/include/ifx_renderdevicedriver.h" | 10 #include "core/fxge/include/ifx_renderdevicedriver.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
119 FX_BOOL bAlphaMode) override; | 119 FX_BOOL bAlphaMode) override; |
120 | 120 |
121 virtual uint8_t* GetBuffer() const; | 121 virtual uint8_t* GetBuffer() const; |
122 | 122 |
123 void PaintStroke(SkPaint* spaint, | 123 void PaintStroke(SkPaint* spaint, |
124 const CFX_GraphStateData* pGraphState, | 124 const CFX_GraphStateData* pGraphState, |
125 const SkMatrix& matrix); | 125 const SkMatrix& matrix); |
126 void Flush(); | 126 void Flush(); |
127 SkPictureRecorder* GetRecorder() const { return m_pRecorder; } | 127 SkPictureRecorder* GetRecorder() const { return m_pRecorder; } |
128 void PreMultiply(); | 128 void PreMultiply(); |
129 static void PreMultiply(CFX_DIBitmap* pDIBitmap); | |
Lei Zhang
2016/06/29 18:19:23
Can we just remove this and put PreMultiply in fx_
| |
129 SkCanvas* SkiaCanvas() { return m_pCanvas; } | 130 SkCanvas* SkiaCanvas() { return m_pCanvas; } |
130 void Dump() const; | 131 void Dump() const; |
131 | 132 |
132 private: | 133 private: |
133 friend class SkiaState; | 134 friend class SkiaState; |
134 | 135 |
135 CFX_DIBitmap* m_pBitmap; | 136 CFX_DIBitmap* m_pBitmap; |
136 CFX_DIBitmap* m_pOriDevice; | 137 CFX_DIBitmap* m_pOriDevice; |
137 SkCanvas* m_pCanvas; | 138 SkCanvas* m_pCanvas; |
138 SkPictureRecorder* const m_pRecorder; | 139 SkPictureRecorder* const m_pRecorder; |
139 std::unique_ptr<SkiaState> m_pCache; | 140 std::unique_ptr<SkiaState> m_pCache; |
140 FX_BOOL m_bRgbByteOrder; | 141 FX_BOOL m_bRgbByteOrder; |
141 FX_BOOL m_bGroupKnockout; | 142 FX_BOOL m_bGroupKnockout; |
142 }; | 143 }; |
143 #endif // defined(_SKIA_SUPPORT_) | 144 #endif // defined(_SKIA_SUPPORT_) |
144 | 145 |
145 #endif // CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ | 146 #endif // CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ |
OLD | NEW |