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

Side by Side Diff: core/src/fpdfapi/fpdf_render/render_int.h

Issue 1529553003: Merge to XFA: Get rid of most instance of 'foo != NULL' (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years 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
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 #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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698