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

Side by Side Diff: core/src/fxge/win32/fx_win32_print.cpp

Issue 1432703002: Remove unused variables in Transform1bppBitmap. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase Created 5 years, 1 month 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 | « no previous file | no next file » | 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 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_ 8 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_
9 #include <windows.h> 9 #include <windows.h>
10 #include "../../../include/fxge/fx_ge_win32.h" 10 #include "../../../include/fxge/fx_ge_win32.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 return FALSE; 129 return FALSE;
130 } 130 }
131 return GDI_StretchDIBits(pBitmap, dest_left, dest_top, dest_width, 131 return GDI_StretchDIBits(pBitmap, dest_left, dest_top, dest_width,
132 dest_height, flags, pIccTransform); 132 dest_height, flags, pIccTransform);
133 } 133 }
134 static CFX_DIBitmap* Transform1bppBitmap(const CFX_DIBSource* pSrc, 134 static CFX_DIBitmap* Transform1bppBitmap(const CFX_DIBSource* pSrc,
135 const CFX_AffineMatrix* pDestMatrix) { 135 const CFX_AffineMatrix* pDestMatrix) {
136 ASSERT(pSrc->GetFormat() == FXDIB_1bppRgb || 136 ASSERT(pSrc->GetFormat() == FXDIB_1bppRgb ||
137 pSrc->GetFormat() == FXDIB_1bppMask || 137 pSrc->GetFormat() == FXDIB_1bppMask ||
138 pSrc->GetFormat() == FXDIB_1bppCmyk); 138 pSrc->GetFormat() == FXDIB_1bppCmyk);
139 CFX_FloatRect unit_rect = pDestMatrix->GetUnitRect();
140 FX_RECT full_rect = unit_rect.GetOutterRect();
141 CFX_DIBExtractor src_bitmap(pSrc); 139 CFX_DIBExtractor src_bitmap(pSrc);
142 CFX_DIBitmap* pSrcBitmap = src_bitmap; 140 CFX_DIBitmap* pSrcBitmap = src_bitmap;
143 if (pSrcBitmap == NULL) { 141 if (pSrcBitmap == NULL) {
144 return NULL; 142 return NULL;
145 } 143 }
146 int src_width = pSrcBitmap->GetWidth(), src_height = pSrcBitmap->GetHeight(); 144 int src_width = pSrcBitmap->GetWidth(), src_height = pSrcBitmap->GetHeight();
147 uint8_t* src_buf = pSrcBitmap->GetBuffer(); 145 uint8_t* src_buf = pSrcBitmap->GetBuffer();
148 FX_DWORD src_pitch = pSrcBitmap->GetPitch(); 146 FX_DWORD src_pitch = pSrcBitmap->GetPitch();
149 FX_FLOAT dest_area = pDestMatrix->GetUnitArea(); 147 FX_FLOAT dest_area = pDestMatrix->GetUnitArea();
150 FX_FLOAT area_scale = 148 FX_FLOAT area_scale =
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 CFX_FontCache* pCache, 462 CFX_FontCache* pCache,
465 const CFX_AffineMatrix* pObject2Device, 463 const CFX_AffineMatrix* pObject2Device,
466 FX_FLOAT font_size, 464 FX_FLOAT font_size,
467 FX_DWORD color, 465 FX_DWORD color,
468 int alpha_flag, 466 int alpha_flag,
469 void* pIccTransform) { 467 void* pIccTransform) {
470 return m_PSRenderer.DrawText(nChars, pCharPos, pFont, pCache, pObject2Device, 468 return m_PSRenderer.DrawText(nChars, pCharPos, pFont, pCache, pObject2Device,
471 font_size, color, alpha_flag, pIccTransform); 469 font_size, color, alpha_flag, pIccTransform);
472 } 470 }
473 #endif 471 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698