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