Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: core/fxge/ge/cfx_renderdevice.cpp

Issue 2182763002: add native draw bitmap with alpha mask (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/fpdfapi/fpdf_render/fpdf_render_image.cpp ('k') | core/fxge/ifx_renderdevicedriver.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/include/cfx_renderdevice.h" 7 #include "core/fxge/include/cfx_renderdevice.h"
8 8
9 #include "core/fxge/include/cfx_fxgedevice.h" 9 #include "core/fxge/include/cfx_fxgedevice.h"
10 #include "core/fxge/include/cfx_graphstatedata.h" 10 #include "core/fxge/include/cfx_graphstatedata.h"
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 804
805 FX_BOOL CFX_RenderDevice::ContinueDIBits(void* handle, IFX_Pause* pPause) { 805 FX_BOOL CFX_RenderDevice::ContinueDIBits(void* handle, IFX_Pause* pPause) {
806 return m_pDeviceDriver->ContinueDIBits(handle, pPause); 806 return m_pDeviceDriver->ContinueDIBits(handle, pPause);
807 } 807 }
808 808
809 void CFX_RenderDevice::CancelDIBits(void* handle) { 809 void CFX_RenderDevice::CancelDIBits(void* handle) {
810 m_pDeviceDriver->CancelDIBits(handle); 810 m_pDeviceDriver->CancelDIBits(handle);
811 } 811 }
812 812
813 #ifdef _SKIA_SUPPORT_ 813 #ifdef _SKIA_SUPPORT_
814
815 void CFX_RenderDevice::DebugVerifyBitmapIsPreMultiplied() const { 814 void CFX_RenderDevice::DebugVerifyBitmapIsPreMultiplied() const {
816 SkASSERT(0); 815 SkASSERT(0);
817 } 816 }
817
818 bool CFX_RenderDevice::SetBitsWithMask(const CFX_DIBSource* pBitmap,
819 const CFX_DIBSource* pMask,
820 int left,
821 int top,
822 int bitmap_alpha,
823 int blend_type) {
824 return m_pDeviceDriver->SetBitsWithMask(pBitmap, pMask, left, top,
825 bitmap_alpha, blend_type);
826 }
818 #endif 827 #endif
819 828
820 FX_BOOL CFX_RenderDevice::DrawNormalText(int nChars, 829 FX_BOOL CFX_RenderDevice::DrawNormalText(int nChars,
821 const FXTEXT_CHARPOS* pCharPos, 830 const FXTEXT_CHARPOS* pCharPos,
822 CFX_Font* pFont, 831 CFX_Font* pFont,
823 CFX_FontCache* pCache, 832 CFX_FontCache* pCache,
824 FX_FLOAT font_size, 833 FX_FLOAT font_size,
825 const CFX_Matrix* pText2Device, 834 const CFX_Matrix* pText2Device,
826 uint32_t fill_color, 835 uint32_t fill_color,
827 uint32_t text_flags) { 836 uint32_t text_flags) {
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 fill_color, stroke_color, fill_mode, 1072 fill_color, stroke_color, fill_mode,
1064 FXDIB_BLEND_NORMAL)) { 1073 FXDIB_BLEND_NORMAL)) {
1065 return FALSE; 1074 return FALSE;
1066 } 1075 }
1067 } 1076 }
1068 if (pClippingPath) 1077 if (pClippingPath)
1069 pClippingPath->Append(&TransformedPath, pUser2Device); 1078 pClippingPath->Append(&TransformedPath, pUser2Device);
1070 } 1079 }
1071 return TRUE; 1080 return TRUE;
1072 } 1081 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_render/fpdf_render_image.cpp ('k') | core/fxge/ifx_renderdevicedriver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698