| 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 "../../../include/fxcrt/fx_ext.h" | 7 #include "../../../include/fxcrt/fx_ext.h" |
| 8 #include "../../../include/fxge/fx_ge.h" | 8 #include "../../../include/fxge/fx_ge.h" |
| 9 #include "../agg/include/fxfx_agg_clip_liang_barsky.h" | |
| 10 #include "../ge/text_int.h" | 9 #include "../ge/text_int.h" |
| 11 #include "../dib/dib_int.h" | 10 #include "../dib/dib_int.h" |
| 12 #include "../agg/include/fx_agg_driver.h" | |
| 13 #include "../../../include/fxge/fx_freetype.h" | 11 #include "../../../include/fxge/fx_freetype.h" |
| 14 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ | 12 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |
| 15 #include "apple_int.h" | 13 #include "apple_int.h" |
| 16 #include "../../../include/fxge/fx_ge_apple.h" | 14 #include "../../../include/fxge/fx_ge_apple.h" |
| 17 #ifndef CGFLOAT_IS_DOUBLE | 15 #ifndef CGFLOAT_IS_DOUBLE |
| 18 #error Expected CGFLOAT_IS_DOUBLE to be defined by CoreGraphics headers | 16 #error Expected CGFLOAT_IS_DOUBLE to be defined by CoreGraphics headers |
| 19 #endif | 17 #endif |
| 20 void* CQuartz2D::createGraphics(CFX_DIBitmap* pBitmap) | 18 void* CQuartz2D::createGraphics(CFX_DIBitmap* pBitmap) |
| 21 { | 19 { |
| 22 if (!pBitmap) { | 20 if (!pBitmap) { |
| (...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1129 return FALSE; | 1127 return FALSE; |
| 1130 } | 1128 } |
| 1131 if (!pBitmap->Create(width, height, format)) { | 1129 if (!pBitmap->Create(width, height, format)) { |
| 1132 delete pBitmap; | 1130 delete pBitmap; |
| 1133 return FALSE; | 1131 return FALSE; |
| 1134 } | 1132 } |
| 1135 m_bOwnedBitmap = TRUE; | 1133 m_bOwnedBitmap = TRUE; |
| 1136 return Attach(pBitmap); | 1134 return Attach(pBitmap); |
| 1137 } | 1135 } |
| 1138 #endif | 1136 #endif |
| OLD | NEW |