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 #include "../../../include/fxge/fx_ge.h" | 5 #include "core/include/fxge/fx_ge.h" |
| 6 |
6 //#define _SKIA_SUPPORT_ | 7 //#define _SKIA_SUPPORT_ |
7 #if defined(_SKIA_SUPPORT_) | 8 #if defined(_SKIA_SUPPORT_) |
8 #include "../../../include/fxcodec/fx_codec.h" | |
9 #include "SkBlitter.h" | 9 #include "SkBlitter.h" |
| 10 #include "core/include/fxcodec/fx_codec.h" |
10 #include "fx_skia_blitter_new.h" | 11 #include "fx_skia_blitter_new.h" |
| 12 |
11 // We use our own renderer here to make it simple | 13 // We use our own renderer here to make it simple |
12 void CFX_SkiaRenderer::blitAntiH(int x, | 14 void CFX_SkiaRenderer::blitAntiH(int x, |
13 int y, | 15 int y, |
14 const SkAlpha antialias[], | 16 const SkAlpha antialias[], |
15 const int16_t runs[]) { | 17 const int16_t runs[]) { |
16 FXSYS_assert(m_Alpha); | 18 FXSYS_assert(m_Alpha); |
17 if (m_pOriDevice == NULL && composite_span == NULL) | 19 if (m_pOriDevice == NULL && composite_span == NULL) |
18 return; | 20 return; |
19 if (y < m_ClipBox.top || y >= m_ClipBox.bottom) | 21 if (y < m_ClipBox.top || y >= m_ClipBox.bottom) |
20 return; | 22 return; |
(...skipping 1818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1839 m_pDevice = pDevice; | 1841 m_pDevice = pDevice; |
1840 m_Left = Left; | 1842 m_Left = Left; |
1841 m_Top = Top; | 1843 m_Top = Top; |
1842 if (pDevice) { | 1844 if (pDevice) { |
1843 m_dstWidth = m_Left + pDevice->GetWidth(); | 1845 m_dstWidth = m_Left + pDevice->GetWidth(); |
1844 m_dstHeight = m_Top + pDevice->GetHeight(); | 1846 m_dstHeight = m_Top + pDevice->GetHeight(); |
1845 } | 1847 } |
1846 return TRUE; | 1848 return TRUE; |
1847 } | 1849 } |
1848 #endif | 1850 #endif |
OLD | NEW |