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 #ifndef CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 7 #ifndef CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
8 #define CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 8 #define CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 FX_BOOL DrawPatternImage(const CFX_Matrix* pObj2Device); | 377 FX_BOOL DrawPatternImage(const CFX_Matrix* pObj2Device); |
378 }; | 378 }; |
379 | 379 |
380 class CPDF_ScaledRenderBuffer { | 380 class CPDF_ScaledRenderBuffer { |
381 public: | 381 public: |
382 CPDF_ScaledRenderBuffer(); | 382 CPDF_ScaledRenderBuffer(); |
383 ~CPDF_ScaledRenderBuffer(); | 383 ~CPDF_ScaledRenderBuffer(); |
384 | 384 |
385 FX_BOOL Initialize(CPDF_RenderContext* pContext, | 385 FX_BOOL Initialize(CPDF_RenderContext* pContext, |
386 CFX_RenderDevice* pDevice, | 386 CFX_RenderDevice* pDevice, |
387 FX_RECT* pRect, | 387 const FX_RECT& pRect, |
388 const CPDF_PageObject* pObj, | 388 const CPDF_PageObject* pObj, |
389 const CPDF_RenderOptions* pOptions = NULL, | 389 const CPDF_RenderOptions* pOptions = NULL, |
390 int max_dpi = 0); | 390 int max_dpi = 0); |
391 CFX_RenderDevice* GetDevice() { | 391 CFX_RenderDevice* GetDevice() { |
392 return m_pBitmapDevice ? m_pBitmapDevice.get() : m_pDevice; | 392 return m_pBitmapDevice ? m_pBitmapDevice.get() : m_pDevice; |
393 } | 393 } |
394 CFX_Matrix* GetMatrix() { return &m_Matrix; } | 394 CFX_Matrix* GetMatrix() { return &m_Matrix; } |
395 void OutputToDevice(); | 395 void OutputToDevice(); |
396 | 396 |
397 private: | 397 private: |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 const uint8_t* m_RampB; | 640 const uint8_t* m_RampB; |
641 }; | 641 }; |
642 | 642 |
643 struct _CPDF_UniqueKeyGen { | 643 struct _CPDF_UniqueKeyGen { |
644 void Generate(int count, ...); | 644 void Generate(int count, ...); |
645 FX_CHAR m_Key[128]; | 645 FX_CHAR m_Key[128]; |
646 int m_KeyLen; | 646 int m_KeyLen; |
647 }; | 647 }; |
648 | 648 |
649 #endif // CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 649 #endif // CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
OLD | NEW |