OLD | NEW |
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/fxge/agg/fx_agg_driver.h" | 8 #include "core/fxge/agg/fx_agg_driver.h" |
8 #include "core/fxge/dib/dib_int.h" | 9 #include "core/fxge/dib/dib_int.h" |
9 #include "core/fxge/ge/fx_text_int.h" | 10 #include "core/fxge/ge/fx_text_int.h" |
10 #include "core/include/fxcrt/fx_ext.h" | |
11 #include "core/include/fxge/fx_freetype.h" | 11 #include "core/include/fxge/fx_freetype.h" |
12 #include "core/include/fxge/fx_ge.h" | 12 #include "core/include/fxge/fx_ge.h" |
13 | 13 |
14 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ | 14 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |
15 #include "core/fxge/apple/apple_int.h" | 15 #include "core/fxge/apple/apple_int.h" |
16 #include "core/include/fxge/fx_ge_apple.h" | 16 #include "core/include/fxge/fx_ge_apple.h" |
17 #ifndef CGFLOAT_IS_DOUBLE | 17 #ifndef CGFLOAT_IS_DOUBLE |
18 #error Expected CGFLOAT_IS_DOUBLE to be defined by CoreGraphics headers | 18 #error Expected CGFLOAT_IS_DOUBLE to be defined by CoreGraphics headers |
19 #endif | 19 #endif |
20 | 20 |
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1039 } | 1039 } |
1040 CFX_DIBitmap* pBitmap = new CFX_DIBitmap; | 1040 CFX_DIBitmap* pBitmap = new CFX_DIBitmap; |
1041 if (!pBitmap->Create(width, height, format)) { | 1041 if (!pBitmap->Create(width, height, format)) { |
1042 delete pBitmap; | 1042 delete pBitmap; |
1043 return FALSE; | 1043 return FALSE; |
1044 } | 1044 } |
1045 m_bOwnedBitmap = TRUE; | 1045 m_bOwnedBitmap = TRUE; |
1046 return Attach(pBitmap); | 1046 return Attach(pBitmap); |
1047 } | 1047 } |
1048 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ | 1048 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |
OLD | NEW |