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

Side by Side Diff: core/src/fxge/ge/fx_ge_device.cpp

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 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/src/fxge/ge/fx_ge.cpp ('k') | core/src/fxge/ge/fx_ge_font.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 #include "../../../include/fxge/fx_ge.h" 7 #include "../../../include/fxge/fx_ge.h"
8 CFX_RenderDevice::CFX_RenderDevice() 8 CFX_RenderDevice::CFX_RenderDevice()
9 { 9 {
10 m_pDeviceDriver = NULL; 10 m_pDeviceDriver = NULL;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 m_ClipBox.top = 0; 118 m_ClipBox.top = 0;
119 m_ClipBox.right = m_Width; 119 m_ClipBox.right = m_Width;
120 m_ClipBox.bottom = m_Height; 120 m_ClipBox.bottom = m_Height;
121 } 121 }
122 FX_BOOL CFX_RenderDevice::DrawPath(const CFX_PathData* pPathData, 122 FX_BOOL CFX_RenderDevice::DrawPath(const CFX_PathData* pPathData,
123 const CFX_AffineMatrix* pObject2Device, 123 const CFX_AffineMatrix* pObject2Device,
124 const CFX_GraphStateData* pGraphState, 124 const CFX_GraphStateData* pGraphState,
125 FX_DWORD fill_color, FX_DWORD stroke_color, i nt fill_mode, 125 FX_DWORD fill_color, FX_DWORD stroke_color, i nt fill_mode,
126 int alpha_flag, void* pIccTransform, int blen d_type) 126 int alpha_flag, void* pIccTransform, int blen d_type)
127 { 127 {
128 FX_BYTE fill_alpha, stroke_alpha; 128 uint8_t fill_alpha, stroke_alpha;
129 if (FXGETFLAG_COLORTYPE(alpha_flag)) { 129 if (FXGETFLAG_COLORTYPE(alpha_flag)) {
130 fill_alpha = FXGETFLAG_ALPHA_FILL(alpha_flag); 130 fill_alpha = FXGETFLAG_ALPHA_FILL(alpha_flag);
131 stroke_alpha = FXGETFLAG_ALPHA_STROKE(alpha_flag); 131 stroke_alpha = FXGETFLAG_ALPHA_STROKE(alpha_flag);
132 } else { 132 } else {
133 fill_alpha = FXARGB_A(fill_color); 133 fill_alpha = FXARGB_A(fill_color);
134 stroke_alpha = FXARGB_A(stroke_color); 134 stroke_alpha = FXARGB_A(stroke_color);
135 } 135 }
136 if ((fill_mode & 3) == 0) { 136 if ((fill_mode & 3) == 0) {
137 fill_alpha = 0; 137 fill_alpha = 0;
138 } 138 }
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 return m_pDeviceDriver->StartDIBits(pBitmap, bitmap_alpha, argb, pMatrix, fl ags, handle, alpha_flag, pIccTransform, blend_mode); 396 return m_pDeviceDriver->StartDIBits(pBitmap, bitmap_alpha, argb, pMatrix, fl ags, handle, alpha_flag, pIccTransform, blend_mode);
397 } 397 }
398 FX_BOOL CFX_RenderDevice::ContinueDIBits(FX_LPVOID handle, IFX_Pause* pPause) 398 FX_BOOL CFX_RenderDevice::ContinueDIBits(FX_LPVOID handle, IFX_Pause* pPause)
399 { 399 {
400 return m_pDeviceDriver->ContinueDIBits(handle, pPause); 400 return m_pDeviceDriver->ContinueDIBits(handle, pPause);
401 } 401 }
402 void CFX_RenderDevice::CancelDIBits(FX_LPVOID handle) 402 void CFX_RenderDevice::CancelDIBits(FX_LPVOID handle)
403 { 403 {
404 m_pDeviceDriver->CancelDIBits(handle); 404 m_pDeviceDriver->CancelDIBits(handle);
405 } 405 }
OLDNEW
« no previous file with comments | « core/src/fxge/ge/fx_ge.cpp ('k') | core/src/fxge/ge/fx_ge_font.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698