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

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

Issue 2520073003: handle antialiased rendering as premultiplied (Closed)
Patch Set: more work on premultiplied mismatch Created 4 years 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/fxge/fx_dib.h ('k') | core/fxge/skia/fx_skia_device.h » ('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/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
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
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 }
OLDNEW
« no previous file with comments | « core/fxge/fx_dib.h ('k') | core/fxge/skia/fx_skia_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698