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

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

Issue 1293033002: Fix -Wunused-function warnings on Windows. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 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/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_ 9 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_
9 #include <windows.h> 10 #include <windows.h>
10 #include <algorithm> 11 #include <algorithm>
12
11 namespace Gdiplus { 13 namespace Gdiplus {
12 using std::min; 14 using std::min;
13 using std::max; 15 using std::max;
14 } // namespace Gdiplus 16 } // namespace Gdiplus
17
15 #include <gdiplus.h> 18 #include <gdiplus.h>
16 #include "../../../include/fxge/fx_ge_win32.h" 19 #include "../../../include/fxge/fx_ge_win32.h"
17 #include "win32_int.h" 20 #include "win32_int.h"
21
18 using namespace Gdiplus; 22 using namespace Gdiplus;
19 using namespace Gdiplus::DllExports; 23 using namespace Gdiplus::DllExports;
24
20 #define GdiFillType2Gdip(fill_type) \ 25 #define GdiFillType2Gdip(fill_type) \
21 (fill_type == ALTERNATE ? FillModeAlternate : FillModeWinding) 26 (fill_type == ALTERNATE ? FillModeAlternate : FillModeWinding)
22 static CombineMode GdiCombineMode2Gdip(int mode) { 27
23 switch (mode) {
24 case RGN_AND:
25 return CombineModeIntersect;
Lei Zhang 2015/08/17 03:44:10 umm
26 }
27 return CombineModeIntersect;
Lei Zhang 2015/08/17 03:44:10 ummmmmm
28 }
29 enum { 28 enum {
30 FuncId_GdipCreatePath2, 29 FuncId_GdipCreatePath2,
31 FuncId_GdipSetPenDashStyle, 30 FuncId_GdipSetPenDashStyle,
32 FuncId_GdipSetPenDashArray, 31 FuncId_GdipSetPenDashArray,
33 FuncId_GdipSetPenDashCap197819, 32 FuncId_GdipSetPenDashCap197819,
34 FuncId_GdipSetPenLineJoin, 33 FuncId_GdipSetPenLineJoin,
35 FuncId_GdipSetPenWidth, 34 FuncId_GdipSetPenWidth,
36 FuncId_GdipCreateFromHDC, 35 FuncId_GdipCreateFromHDC,
37 FuncId_GdipSetPageUnit, 36 FuncId_GdipSetPageUnit,
38 FuncId_GdipSetSmoothingMode, 37 FuncId_GdipSetSmoothingMode,
(...skipping 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after
1511 dest_pitch); 1510 dest_pitch);
1512 } 1511 }
1513 } 1512 }
1514 CFX_DIBitmap* pDIBitmap = _FX_WindowsDIB_LoadFromBuf( 1513 CFX_DIBitmap* pDIBitmap = _FX_WindowsDIB_LoadFromBuf(
1515 pInfo->pbmi, pData, pInfo->pbmi->bmiHeader.biBitCount == 32); 1514 pInfo->pbmi, pData, pInfo->pbmi->bmiHeader.biBitCount == 32);
1516 FX_Free(pData); 1515 FX_Free(pData);
1517 FreeDIBitmap(pInfo); 1516 FreeDIBitmap(pInfo);
1518 return pDIBitmap; 1517 return pDIBitmap;
1519 } 1518 }
1520 #endif 1519 #endif
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698