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

Side by Side Diff: xfa/fde/fde_render.cpp

Issue 1803723002: Move xfa/src up to xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 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
« no previous file with comments | « xfa/fde/fde_render.h ('k') | xfa/fde/fde_renderdevice.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "xfa/src/fde/fde_render.h" 7 #include "xfa/fde/fde_render.h"
8 8
9 #include "xfa/src/fde/fde_renderdevice.h" 9 #include "xfa/fde/fde_renderdevice.h"
10 #include "xfa/src/fgas/crt/fgas_memory.h" 10 #include "xfa/fgas/crt/fgas_memory.h"
11 11
12 #define FDE_PATHRENDER_Stroke 1 12 #define FDE_PATHRENDER_Stroke 1
13 #define FDE_PATHRENDER_Fill 2 13 #define FDE_PATHRENDER_Fill 2
14 14
15 namespace { 15 namespace {
16 16
17 class CFDE_RenderContext : public IFDE_RenderContext, 17 class CFDE_RenderContext : public IFDE_RenderContext, public CFX_Target {
18 public CFX_Target {
19 public: 18 public:
20 CFDE_RenderContext(); 19 CFDE_RenderContext();
21 virtual ~CFDE_RenderContext(); 20 virtual ~CFDE_RenderContext();
22 virtual void Release() { delete this; } 21 virtual void Release() { delete this; }
23 virtual FX_BOOL StartRender(IFDE_RenderDevice* pRenderDevice, 22 virtual FX_BOOL StartRender(IFDE_RenderDevice* pRenderDevice,
24 IFDE_CanvasSet* pCanvasSet, 23 IFDE_CanvasSet* pCanvasSet,
25 const CFX_Matrix& tmDoc2Device); 24 const CFX_Matrix& tmDoc2Device);
26 virtual FDE_RENDERSTATUS GetStatus() const { return m_eStatus; } 25 virtual FDE_RENDERSTATUS GetStatus() const { return m_eStatus; }
27 virtual FDE_RENDERSTATUS DoRender(IFX_Pause* pPause = NULL); 26 virtual FDE_RENDERSTATUS DoRender(IFX_Pause* pPause = NULL);
28 virtual void StopRender(); 27 virtual void StopRender();
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 rtClip.Offset(rtObj.left, rtObj.top); 281 rtClip.Offset(rtObj.left, rtObj.top);
283 m_Transform.TransformRect(rtClip); 282 m_Transform.TransformRect(rtClip);
284 const CFX_RectF& rtDevClip = m_pRenderDevice->GetClipRect(); 283 const CFX_RectF& rtDevClip = m_pRenderDevice->GetClipRect();
285 rtClip.Intersect(rtDevClip); 284 rtClip.Intersect(rtDevClip);
286 hState = m_pRenderDevice->SaveState(); 285 hState = m_pRenderDevice->SaveState();
287 return m_pRenderDevice->SetClipRect(rtClip); 286 return m_pRenderDevice->SetClipRect(rtClip);
288 } 287 }
289 void CFDE_RenderContext::RestoreClip(FDE_HDEVICESTATE hState) { 288 void CFDE_RenderContext::RestoreClip(FDE_HDEVICESTATE hState) {
290 m_pRenderDevice->RestoreState(hState); 289 m_pRenderDevice->RestoreState(hState);
291 } 290 }
OLDNEW
« no previous file with comments | « xfa/fde/fde_render.h ('k') | xfa/fde/fde_renderdevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698