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

Side by Side Diff: core/fxge/win32/fx_win32_device.cpp

Issue 2223213002: Refactor fx_ge part 3 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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
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/fxge/include/fx_ge.h"
8
9 #include <algorithm> 7 #include <algorithm>
dsinclair 2016/08/09 14:14:35 This needs a #include "core/fxcrt/include/fx_syste
npm 2016/08/09 16:26:12 Done.
10 #include <memory> 8 #include <memory>
11 #include <vector> 9 #include <vector>
12 10
13 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_ 11 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_
14 #include <crtdbg.h> 12 #include <crtdbg.h>
15 13
16 #include "core/fxcodec/include/fx_codec.h" 14 #include "core/fxcodec/include/fx_codec.h"
17 #include "core/fxcrt/include/fx_memory.h" 15 #include "core/fxcrt/include/fx_memory.h"
18 16
19 #ifndef _SKIA_SUPPORT_ 17 #ifndef _SKIA_SUPPORT_
20 #include "core/fxge/agg/fx_agg_driver.h" 18 #include "core/fxge/agg/fx_agg_driver.h"
21 #endif 19 #endif
22 20
23 #include "core/fxge/dib/dib_int.h" 21 #include "core/fxge/dib/dib_int.h"
24 #include "core/fxge/ge/cfx_folderfontinfo.h" 22 #include "core/fxge/ge/cfx_folderfontinfo.h"
25 #include "core/fxge/ge/fx_text_int.h" 23 #include "core/fxge/ge/fx_text_int.h"
26 #include "core/fxge/include/cfx_fontmapper.h" 24 #include "core/fxge/include/cfx_fontmapper.h"
27 #include "core/fxge/include/cfx_gemodule.h" 25 #include "core/fxge/include/cfx_gemodule.h"
26 #include "core/fxge/include/cfx_graphstatedata.h"
28 #include "core/fxge/include/cfx_pathdata.h" 27 #include "core/fxge/include/cfx_pathdata.h"
29 #include "core/fxge/include/cfx_windowsdevice.h" 28 #include "core/fxge/include/cfx_windowsdevice.h"
30 #include "core/fxge/include/ifx_systemfontinfo.h" 29 #include "core/fxge/include/ifx_systemfontinfo.h"
31 #include "core/fxge/include/fx_font.h" 30 #include "core/fxge/include/fx_font.h"
32 #include "core/fxge/include/fx_freetype.h" 31 #include "core/fxge/include/fx_freetype.h"
33 #include "core/fxge/win32/cfx_windowsdib.h" 32 #include "core/fxge/win32/cfx_windowsdib.h"
34 #include "core/fxge/win32/dwrite_int.h" 33 #include "core/fxge/win32/dwrite_int.h"
35 #include "core/fxge/win32/win32_int.h" 34 #include "core/fxge/win32/win32_int.h"
36 #include "third_party/base/stl_util.h" 35 #include "third_party/base/stl_util.h"
37 36
(...skipping 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1386 int device_type = ::GetDeviceCaps(hDC, TECHNOLOGY); 1385 int device_type = ::GetDeviceCaps(hDC, TECHNOLOGY);
1387 int obj_type = ::GetObjectType(hDC); 1386 int obj_type = ::GetObjectType(hDC);
1388 bool use_printer = device_type == DT_RASPRINTER || 1387 bool use_printer = device_type == DT_RASPRINTER ||
1389 device_type == DT_PLOTTER || obj_type == OBJ_ENHMETADC; 1388 device_type == DT_PLOTTER || obj_type == OBJ_ENHMETADC;
1390 if (use_printer) 1389 if (use_printer)
1391 return new CGdiPrinterDriver(hDC); 1390 return new CGdiPrinterDriver(hDC);
1392 return new CGdiDisplayDriver(hDC); 1391 return new CGdiDisplayDriver(hDC);
1393 } 1392 }
1394 1393
1395 #endif // _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_ 1394 #endif // _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698