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

Side by Side Diff: core/fxge/apple/fx_quartz_device.cpp

Issue 2081523002: Fix clang_use_chrome_plugin for Mac and Skia builds (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: changes for skia Created 4 years, 6 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
OLDNEW
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 // 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/fxcrt/include/fx_ext.h" 7 #include "core/fxcrt/include/fx_ext.h"
8 8
9 #ifndef _SKIA_SUPPORT_ 9 #ifndef _SKIA_SUPPORT_
10 #include "core/fxge/agg/fx_agg_driver.h" 10 #include "core/fxge/agg/fx_agg_driver.h"
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 CGContextDrawImage(m_context, rect, image); 724 CGContextDrawImage(m_context, rect, image);
725 CGImageRelease(image); 725 CGImageRelease(image);
726 CGContextRelease(ctx); 726 CGContextRelease(ctx);
727 if (pBitmap1 != pBitmap) 727 if (pBitmap1 != pBitmap)
728 delete pBitmap1; 728 delete pBitmap1;
729 729
730 RestoreState(false); 730 RestoreState(false);
731 return TRUE; 731 return TRUE;
732 } 732 }
733 733
734 FX_BOOL CFX_QuartzDeviceDriver::StartDIBits(const CFX_DIBSource* pBitmap,
735 int bitmap_alpha,
736 uint32_t color,
737 const CFX_Matrix* pMatrix,
738 uint32_t flags,
739 void*& handle,
740 int blend_type) {
741 return FALSE;
742 }
743
734 FX_BOOL CFX_QuartzDeviceDriver::CG_DrawGlyphRun( 744 FX_BOOL CFX_QuartzDeviceDriver::CG_DrawGlyphRun(
735 int nChars, 745 int nChars,
736 const FXTEXT_CHARPOS* pCharPos, 746 const FXTEXT_CHARPOS* pCharPos,
737 CFX_Font* pFont, 747 CFX_Font* pFont,
738 CFX_FontCache* pCache, 748 CFX_FontCache* pCache,
739 const CFX_Matrix* pGlyphMatrix, 749 const CFX_Matrix* pGlyphMatrix,
740 const CFX_Matrix* pObject2Device, 750 const CFX_Matrix* pObject2Device,
741 FX_FLOAT font_size, 751 FX_FLOAT font_size,
742 uint32_t argb) { 752 uint32_t argb) {
743 if (nChars == 0) 753 if (nChars == 0)
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 } 1046 }
1037 CFX_DIBitmap* pBitmap = new CFX_DIBitmap; 1047 CFX_DIBitmap* pBitmap = new CFX_DIBitmap;
1038 if (!pBitmap->Create(width, height, format)) { 1048 if (!pBitmap->Create(width, height, format)) {
1039 delete pBitmap; 1049 delete pBitmap;
1040 return FALSE; 1050 return FALSE;
1041 } 1051 }
1042 m_bOwnedBitmap = TRUE; 1052 m_bOwnedBitmap = TRUE;
1043 return Attach(pBitmap); 1053 return Attach(pBitmap);
1044 } 1054 }
1045 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ 1055 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698