| 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/fx_ext.h" | 7 #include "core/fxcrt/fx_ext.h" |
| 8 | 8 |
| 9 #if !defined _SKIA_SUPPORT_ && !defined _SKIA_SUPPORT_PATHS_ | 9 #ifndef _SKIA_SUPPORT_ |
| 10 #include "core/fxge/agg/fx_agg_driver.h" | 10 #include "core/fxge/agg/fx_agg_driver.h" |
| 11 #endif | 11 #endif |
| 12 | 12 |
| 13 #include "core/fxcrt/fx_memory.h" | 13 #include "core/fxcrt/fx_memory.h" |
| 14 #include "core/fxge/cfx_gemodule.h" | 14 #include "core/fxge/cfx_gemodule.h" |
| 15 #include "core/fxge/cfx_graphstatedata.h" | 15 #include "core/fxge/cfx_graphstatedata.h" |
| 16 #include "core/fxge/cfx_pathdata.h" | 16 #include "core/fxge/cfx_pathdata.h" |
| 17 #include "core/fxge/cfx_renderdevice.h" | 17 #include "core/fxge/cfx_renderdevice.h" |
| 18 #include "core/fxge/dib/dib_int.h" | 18 #include "core/fxge/dib/dib_int.h" |
| 19 #include "core/fxge/fx_freetype.h" | 19 #include "core/fxge/fx_freetype.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 119 |
| 120 void CQuartz2D::saveGraphicsState(void* graphics) { | 120 void CQuartz2D::saveGraphicsState(void* graphics) { |
| 121 if (graphics) | 121 if (graphics) |
| 122 CGContextSaveGState((CGContextRef)graphics); | 122 CGContextSaveGState((CGContextRef)graphics); |
| 123 } | 123 } |
| 124 | 124 |
| 125 void CQuartz2D::restoreGraphicsState(void* graphics) { | 125 void CQuartz2D::restoreGraphicsState(void* graphics) { |
| 126 if (graphics) | 126 if (graphics) |
| 127 CGContextRestoreGState((CGContextRef)graphics); | 127 CGContextRestoreGState((CGContextRef)graphics); |
| 128 } | 128 } |
| OLD | NEW |