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

Side by Side Diff: core/src/fpdfapi/fpdf_page/pageint.h

Issue 1098583002: Fix a bunch of -Wunused-but-set-variable warnings. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: nits Created 5 years, 7 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 | « core/include/fxcrt/fx_system.h ('k') | core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp » ('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 #ifndef _PAGEINT_H_ 7 #ifndef _PAGEINT_H_
8 #define _PAGEINT_H_ 8 #define _PAGEINT_H_
9 9
10 #include "../../../include/fpdfapi/fpdf_pageobj.h" 10 #include "../../../include/fpdfapi/fpdf_pageobj.h"
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 virtual FX_BOOL v_Init(CPDF_Object* pObj) = 0; 416 virtual FX_BOOL v_Init(CPDF_Object* pObj) = 0;
417 virtual FX_BOOL v_Call(FX_FLOAT* inputs, FX_FLOAT* results) const = 0; 417 virtual FX_BOOL v_Call(FX_FLOAT* inputs, FX_FLOAT* results) const = 0;
418 }; 418 };
419 class CPDF_IccProfile 419 class CPDF_IccProfile
420 { 420 {
421 public: 421 public:
422 CPDF_IccProfile(FX_LPCBYTE pData, FX_DWORD dwSize); 422 CPDF_IccProfile(FX_LPCBYTE pData, FX_DWORD dwSize);
423 ~CPDF_IccProfile(); 423 ~CPDF_IccProfile();
424 FX_INT32 GetComponents() const { return m_nSrcComponents; } 424 FX_INT32 GetComponents() const { return m_nSrcComponents; }
425 FX_BOOL m_bsRGB; 425 FX_BOOL m_bsRGB;
426 FX_LPVOID m_pTransform;
427 private:
426 FX_INT32 m_nSrcComponents; 428 FX_INT32 m_nSrcComponents;
427 FX_LPVOID m_pTransform;
428 }; 429 };
429 class CPDF_DeviceCS : public CPDF_ColorSpace 430 class CPDF_DeviceCS : public CPDF_ColorSpace
430 { 431 {
431 public: 432 public:
432 CPDF_DeviceCS(int family); 433 CPDF_DeviceCS(int family);
433 virtual FX_BOOL GetRGB(FX_FLOAT* pBuf, FX_FLOAT& R, FX_FLOAT& G, FX_FLOA T& B) const; 434 virtual FX_BOOL GetRGB(FX_FLOAT* pBuf, FX_FLOAT& R, FX_FLOAT& G, FX_FLOA T& B) const;
434 FX_BOOL SetRGB(FX_FLOAT* pBuf, FX_FLOAT R, FX_FLOAT G, FX_FLOAT B) const ; 435 FX_BOOL SetRGB(FX_FLOAT* pBuf, FX_FLOAT R, FX_FLOAT G, FX_FLOAT B) const ;
435 FX_BOOL v_GetCMYK(FX_FLOAT* pBuf, FX_FLOAT& c, FX_FLOAT& m, FX_FLOAT& y, FX_FLOAT& k) const; 436 FX_BOOL v_GetCMYK(FX_FLOAT* pBuf, FX_FLOAT& c, FX_FLOAT& m, FX_FLOAT& y, FX_FLOAT& k) const;
436 FX_BOOL v_SetCMYK(FX_FLOAT* pBuf, FX_FLOAT c, FX_FLOAT m, FX_FLOAT y, FX _FLOAT k) const; 437 FX_BOOL v_SetCMYK(FX_FLOAT* pBuf, FX_FLOAT c, FX_FLOAT m, FX_FLOAT y, FX _FLOAT k) const;
437 virtual void TranslateImageLine(FX_LPBYTE pDestBuf, FX_LPCBYTE pSrcBu f, int pixels, int image_width, int image_height, FX_BOOL bTransMask = FALSE) co nst; 438 virtual void TranslateImageLine(FX_LPBYTE pDestBuf, FX_LPCBYTE pSrcBu f, int pixels, int image_width, int image_height, FX_BOOL bTransMask = FALSE) co nst;
(...skipping 20 matching lines...) Expand all
458 CFX_ByteString m_Prefix; 459 CFX_ByteString m_Prefix;
459 int m_nIndex; 460 int m_nIndex;
460 }; 461 };
461 ~CPDF_ResourceNaming(); 462 ~CPDF_ResourceNaming();
462 CFX_ByteString GetName(const CPDF_Dictionary* pResList, FX_LPCS TR szType); 463 CFX_ByteString GetName(const CPDF_Dictionary* pResList, FX_LPCS TR szType);
463 protected: 464 protected:
464 CFX_MapByteStringToPtr m_NamingCache; 465 CFX_MapByteStringToPtr m_NamingCache;
465 }; 466 };
466 467
467 #endif // _PAGEINT_H_ 468 #endif // _PAGEINT_H_
OLDNEW
« no previous file with comments | « core/include/fxcrt/fx_system.h ('k') | core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698