| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #include "core/fxge/cfx_renderdevice.h" | 7 #include "core/fxge/cfx_renderdevice.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 const CFX_DIBSource* pMask, | 815 const CFX_DIBSource* pMask, |
| 816 int left, | 816 int left, |
| 817 int top, | 817 int top, |
| 818 int bitmap_alpha, | 818 int bitmap_alpha, |
| 819 int blend_type) { | 819 int blend_type) { |
| 820 return m_pDeviceDriver->SetBitsWithMask(pBitmap, pMask, left, top, | 820 return m_pDeviceDriver->SetBitsWithMask(pBitmap, pMask, left, top, |
| 821 bitmap_alpha, blend_type); | 821 bitmap_alpha, blend_type); |
| 822 } | 822 } |
| 823 #endif | 823 #endif |
| 824 | 824 |
| 825 #ifdef _SKIA_SUPPORT_PATHS_ | |
| 826 void CFX_RenderDevice::UnPreMultiplyDevice() { | |
| 827 SkASSERT(0); | |
| 828 } | |
| 829 #endif | |
| 830 | |
| 831 bool CFX_RenderDevice::DrawNormalText(int nChars, | 825 bool CFX_RenderDevice::DrawNormalText(int nChars, |
| 832 const FXTEXT_CHARPOS* pCharPos, | 826 const FXTEXT_CHARPOS* pCharPos, |
| 833 CFX_Font* pFont, | 827 CFX_Font* pFont, |
| 834 FX_FLOAT font_size, | 828 FX_FLOAT font_size, |
| 835 const CFX_Matrix* pText2Device, | 829 const CFX_Matrix* pText2Device, |
| 836 uint32_t fill_color, | 830 uint32_t fill_color, |
| 837 uint32_t text_flags) { | 831 uint32_t text_flags) { |
| 838 int nativetext_flags = text_flags; | 832 int nativetext_flags = text_flags; |
| 839 if (m_DeviceClass != FXDC_DISPLAY) { | 833 if (m_DeviceClass != FXDC_DISPLAY) { |
| 840 if (!(text_flags & FXTEXT_PRINTGRAPHICTEXT)) { | 834 if (!(text_flags & FXTEXT_PRINTGRAPHICTEXT)) { |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1078 fill_color, stroke_color, fill_mode, | 1072 fill_color, stroke_color, fill_mode, |
| 1079 FXDIB_BLEND_NORMAL)) { | 1073 FXDIB_BLEND_NORMAL)) { |
| 1080 return false; | 1074 return false; |
| 1081 } | 1075 } |
| 1082 } | 1076 } |
| 1083 if (pClippingPath) | 1077 if (pClippingPath) |
| 1084 pClippingPath->Append(&TransformedPath, pUser2Device); | 1078 pClippingPath->Append(&TransformedPath, pUser2Device); |
| 1085 } | 1079 } |
| 1086 return true; | 1080 return true; |
| 1087 } | 1081 } |
| OLD | NEW |