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

Side by Side Diff: core/src/fxge/win32/fx_win32_gdipext.cpp

Issue 1398383002: core/ difference with XFA (for information only). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: After bidi Created 5 years, 1 month 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 "../../../include/fxge/fx_ge.h" 7 #include "../../../include/fxge/fx_ge.h"
8 8
9 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_ 9 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_
10 #include <windows.h> 10 #include <windows.h>
11 #include <algorithm> 11 #include <algorithm>
12 12
13 namespace Gdiplus { 13 namespace Gdiplus {
14 using std::min; 14 using std::min;
15 using std::max; 15 using std::max;
16 } // namespace Gdiplus 16 } // namespace Gdiplus
17 17
18 #include <gdiplus.h> 18 #include <gdiplus.h>
19 #include "../../../include/fxge/fx_ge_win32.h" 19 #include "../../../include/fxge/fx_ge_win32.h"
20 #include "win32_int.h" 20 #include "win32_int.h"
21 21
22 using namespace Gdiplus; 22 using namespace Gdiplus;
23 using namespace Gdiplus::DllExports; 23 using namespace Gdiplus::DllExports;
24 24
25 #define GdiFillType2Gdip(fill_type) \ 25 #define GdiFillType2Gdip(fill_type) \
26 (fill_type == ALTERNATE ? FillModeAlternate : FillModeWinding) 26 (fill_type == ALTERNATE ? FillModeAlternate : FillModeWinding)
27 27
28 #ifdef PDF_ENABLE_XFA
29 static CombineMode GdiCombineMode2Gdip(int mode) {
30 switch (mode) {
31 case RGN_AND:
32 return CombineModeIntersect;
33 }
34 return CombineModeIntersect;
35 }
36 #endif
28 enum { 37 enum {
29 FuncId_GdipCreatePath2, 38 FuncId_GdipCreatePath2,
30 FuncId_GdipSetPenDashStyle, 39 FuncId_GdipSetPenDashStyle,
31 FuncId_GdipSetPenDashArray, 40 FuncId_GdipSetPenDashArray,
32 FuncId_GdipSetPenDashCap197819, 41 FuncId_GdipSetPenDashCap197819,
33 FuncId_GdipSetPenLineJoin, 42 FuncId_GdipSetPenLineJoin,
34 FuncId_GdipSetPenWidth, 43 FuncId_GdipSetPenWidth,
35 FuncId_GdipCreateFromHDC, 44 FuncId_GdipCreateFromHDC,
36 FuncId_GdipSetPageUnit, 45 FuncId_GdipSetPageUnit,
37 FuncId_GdipSetSmoothingMode, 46 FuncId_GdipSetSmoothingMode,
(...skipping 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after
1510 dest_pitch); 1519 dest_pitch);
1511 } 1520 }
1512 } 1521 }
1513 CFX_DIBitmap* pDIBitmap = _FX_WindowsDIB_LoadFromBuf( 1522 CFX_DIBitmap* pDIBitmap = _FX_WindowsDIB_LoadFromBuf(
1514 pInfo->pbmi, pData, pInfo->pbmi->bmiHeader.biBitCount == 32); 1523 pInfo->pbmi, pData, pInfo->pbmi->bmiHeader.biBitCount == 32);
1515 FX_Free(pData); 1524 FX_Free(pData);
1516 FreeDIBitmap(pInfo); 1525 FreeDIBitmap(pInfo);
1517 return pDIBitmap; 1526 return pDIBitmap;
1518 } 1527 }
1519 #endif 1528 #endif
OLDNEW
« core/src/fxcodec/codec/fx_codec_fax.cpp ('K') | « core/src/fxge/ge/text_int.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698