| 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/fpdfview.h" | 7 #include "../include/fpdfview.h" |
| 8 #include "../include/fpdfformfill.h" | 8 #include "../include/fpdfformfill.h" |
| 9 #include "../include/fsdk_define.h" | 9 #include "../include/fsdk_define.h" |
| 10 #include "../include/fsdk_mgr.h" | 10 #include "../include/fsdk_mgr.h" |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 215 |
| 216 CFX_AffineMatrix matrix; | 216 CFX_AffineMatrix matrix; |
| 217 pPage->GetDisplayMatrix(matrix, start_x, start_y, size_x, size_y, rotate
); | 217 pPage->GetDisplayMatrix(matrix, start_x, start_y, size_x, size_y, rotate
); |
| 218 | 218 |
| 219 FX_RECT clip; | 219 FX_RECT clip; |
| 220 clip.left = start_x; | 220 clip.left = start_x; |
| 221 clip.right = start_x + size_x; | 221 clip.right = start_x + size_x; |
| 222 clip.top = start_y; | 222 clip.top = start_y; |
| 223 clip.bottom = start_y + size_y; | 223 clip.bottom = start_y + size_y; |
| 224 | 224 |
| 225 #ifdef _SKIA_SUPPORT_ | |
| 226 CFX_SkiaDevice* pDevice = FX_NEW CFX_SkiaDevice; | |
| 227 #else | |
| 228 CFX_FxgeDevice* pDevice = NULL; | 225 CFX_FxgeDevice* pDevice = NULL; |
| 229 pDevice = FX_NEW CFX_FxgeDevice; | 226 pDevice = FX_NEW CFX_FxgeDevice; |
| 230 #endif | |
| 231 | 227 |
| 232 if (!pDevice) | 228 if (!pDevice) |
| 233 return; | 229 return; |
| 234 pDevice->Attach((CFX_DIBitmap*)bitmap); | 230 pDevice->Attach((CFX_DIBitmap*)bitmap); |
| 235 pDevice->SaveState(); | 231 pDevice->SaveState(); |
| 236 pDevice->SetClip_Rect(&clip); | 232 pDevice->SetClip_Rect(&clip); |
| 237 | 233 |
| 238 | 234 |
| 239 CPDF_RenderContext* pContext = NULL; | 235 CPDF_RenderContext* pContext = NULL; |
| 240 pContext = FX_NEW CPDF_RenderContext; | 236 pContext = FX_NEW CPDF_RenderContext; |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 if (bExistCAAction) | 428 if (bExistCAAction) |
| 433 { | 429 { |
| 434 CPDF_Action action = aa.GetAction(CPDF_AAction::
ClosePage); | 430 CPDF_Action action = aa.GetAction(CPDF_AAction::
ClosePage); |
| 435 pActionHandler->DoAction_Page(action, CPDF_AActi
on::ClosePage, pSDKDoc); | 431 pActionHandler->DoAction_Page(action, CPDF_AActi
on::ClosePage, pSDKDoc); |
| 436 } | 432 } |
| 437 } | 433 } |
| 438 } | 434 } |
| 439 } | 435 } |
| 440 | 436 |
| 441 | 437 |
| OLD | NEW |