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

Side by Side Diff: core/include/fxge/fx_ge.h

Issue 1250433003: Merge to XFA: Remove dead code found by Scythe. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@xfa
Patch Set: Created 5 years, 5 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/fxge/fx_font.h ('k') | core/src/fpdfapi/fpdf_render/render_int.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 #ifndef CORE_INCLUDE_FXGE_FX_GE_H_ 7 #ifndef CORE_INCLUDE_FXGE_FX_GE_H_
8 #define CORE_INCLUDE_FXGE_FX_GE_H_ 8 #define CORE_INCLUDE_FXGE_FX_GE_H_
9 9
10 #include "fx_dib.h" 10 #include "fx_dib.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 protected: 126 protected:
127 127
128 ClipType m_Type; 128 ClipType m_Type;
129 129
130 FX_RECT m_Box; 130 FX_RECT m_Box;
131 131
132 CFX_DIBitmapRef m_Mask; 132 CFX_DIBitmapRef m_Mask;
133 133
134 void IntersectMaskRect(FX_RECT rect, FX_RECT mask_box , CFX_DIBitmapRef Mask); 134 void IntersectMaskRect(FX_RECT rect, FX_RECT mask_box , CFX_DIBitmapRef Mask);
135 }; 135 };
136 extern const uint8_t g_GammaRamp[256];
137 extern const uint8_t g_GammaInverse[256];
138 #define FX_GAMMA(value) (value) 136 #define FX_GAMMA(value) (value)
139 #define FX_GAMMA_INVERSE(value) (value) 137 #define FX_GAMMA_INVERSE(value) (value)
140 inline FX_ARGB ArgbGamma(FX_ARGB argb) 138 inline FX_ARGB ArgbGamma(FX_ARGB argb)
141 { 139 {
142 return argb; 140 return argb;
143 } 141 }
144 inline FX_ARGB ArgbGammaInverse(FX_ARGB argb) 142 inline FX_ARGB ArgbGammaInverse(FX_ARGB argb)
145 { 143 {
146 return argb; 144 return argb;
147 } 145 }
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 void SetGraphState(const CFX_GraphStateData* pGraphSt ate); 721 void SetGraphState(const CFX_GraphStateData* pGraphSt ate);
724 722
725 void SetColor(FX_DWORD color, int alpha_flag, void* p IccTransform); 723 void SetColor(FX_DWORD color, int alpha_flag, void* p IccTransform);
726 724
727 void FindPSFontGlyph(CFX_FaceCache* pFaceCache, CFX_F ont* pFont, const FXTEXT_CHARPOS& charpos, int& ps_fontnum, int &ps_glyphindex); 725 void FindPSFontGlyph(CFX_FaceCache* pFaceCache, CFX_F ont* pFont, const FXTEXT_CHARPOS& charpos, int& ps_fontnum, int &ps_glyphindex);
728 726
729 void WritePSBinary(const uint8_t* data, int len); 727 void WritePSBinary(const uint8_t* data, int len);
730 }; 728 };
731 729
732 #endif // CORE_INCLUDE_FXGE_FX_GE_H_ 730 #endif // CORE_INCLUDE_FXGE_FX_GE_H_
OLDNEW
« no previous file with comments | « core/include/fxge/fx_font.h ('k') | core/src/fpdfapi/fpdf_render/render_int.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698