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

Side by Side Diff: core/src/fxge/dib/fx_dib_main.cpp

Issue 1513363002: Remove CFX_AffineMatrix/CPDF_Matrix (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits 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
« no previous file with comments | « core/src/fxge/dib/dib_int.h ('k') | core/src/fxge/dib/fx_dib_transform.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 "core/include/fxge/fx_dib.h" 7 #include "core/include/fxge/fx_dib.h"
8 8
9 #include <limits.h> 9 #include <limits.h>
10 10
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1552 m_BlendType = FXDIB_BLEND_NORMAL; 1552 m_BlendType = FXDIB_BLEND_NORMAL;
1553 } 1553 }
1554 CFX_ImageRenderer::~CFX_ImageRenderer() { 1554 CFX_ImageRenderer::~CFX_ImageRenderer() {
1555 delete m_pTransformer; 1555 delete m_pTransformer;
1556 } 1556 }
1557 FX_BOOL CFX_ImageRenderer::Start(CFX_DIBitmap* pDevice, 1557 FX_BOOL CFX_ImageRenderer::Start(CFX_DIBitmap* pDevice,
1558 const CFX_ClipRgn* pClipRgn, 1558 const CFX_ClipRgn* pClipRgn,
1559 const CFX_DIBSource* pSource, 1559 const CFX_DIBSource* pSource,
1560 int bitmap_alpha, 1560 int bitmap_alpha,
1561 FX_DWORD mask_color, 1561 FX_DWORD mask_color,
1562 const CFX_AffineMatrix* pMatrix, 1562 const CFX_Matrix* pMatrix,
1563 FX_DWORD dib_flags, 1563 FX_DWORD dib_flags,
1564 FX_BOOL bRgbByteOrder, 1564 FX_BOOL bRgbByteOrder,
1565 int alpha_flag, 1565 int alpha_flag,
1566 void* pIccTransform, 1566 void* pIccTransform,
1567 int blend_type) { 1567 int blend_type) {
1568 m_Matrix = *pMatrix; 1568 m_Matrix = *pMatrix;
1569 CFX_FloatRect image_rect_f = m_Matrix.GetUnitRect(); 1569 CFX_FloatRect image_rect_f = m_Matrix.GetUnitRect();
1570 FX_RECT image_rect = image_rect_f.GetOutterRect(); 1570 FX_RECT image_rect = image_rect_f.GetOutterRect();
1571 m_ClipBox = pClipRgn ? pClipRgn->GetBox() : FX_RECT(0, 0, pDevice->GetWidth(), 1571 m_ClipBox = pClipRgn ? pClipRgn->GetBox() : FX_RECT(0, 0, pDevice->GetWidth(),
1572 pDevice->GetHeight()); 1572 pDevice->GetHeight());
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1716 if (!m_pBitmap->Create(width, height, src_format)) { 1716 if (!m_pBitmap->Create(width, height, src_format)) {
1717 delete m_pBitmap; 1717 delete m_pBitmap;
1718 m_pBitmap = NULL; 1718 m_pBitmap = NULL;
1719 return FALSE; 1719 return FALSE;
1720 } 1720 }
1721 if (pSrcPalette) { 1721 if (pSrcPalette) {
1722 m_pBitmap->CopyPalette(pSrcPalette); 1722 m_pBitmap->CopyPalette(pSrcPalette);
1723 } 1723 }
1724 return TRUE; 1724 return TRUE;
1725 } 1725 }
OLDNEW
« no previous file with comments | « core/src/fxge/dib/dib_int.h ('k') | core/src/fxge/dib/fx_dib_transform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698