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

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

Issue 2226003003: Fix typos of the word outer. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 4 years, 4 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/fxge/agg/fx_agg_driver.cpp ('k') | core/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/fxge/include/fx_dib.h" 7 #include "core/fxge/include/fx_dib.h"
8 8
9 #include <limits.h> 9 #include <limits.h>
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after
1529 int bitmap_alpha, 1529 int bitmap_alpha,
1530 uint32_t mask_color, 1530 uint32_t mask_color,
1531 const CFX_Matrix* pMatrix, 1531 const CFX_Matrix* pMatrix,
1532 uint32_t dib_flags, 1532 uint32_t dib_flags,
1533 FX_BOOL bRgbByteOrder, 1533 FX_BOOL bRgbByteOrder,
1534 int alpha_flag, 1534 int alpha_flag,
1535 void* pIccTransform, 1535 void* pIccTransform,
1536 int blend_type) { 1536 int blend_type) {
1537 m_Matrix = *pMatrix; 1537 m_Matrix = *pMatrix;
1538 CFX_FloatRect image_rect_f = m_Matrix.GetUnitRect(); 1538 CFX_FloatRect image_rect_f = m_Matrix.GetUnitRect();
1539 FX_RECT image_rect = image_rect_f.GetOutterRect(); 1539 FX_RECT image_rect = image_rect_f.GetOuterRect();
1540 m_ClipBox = pClipRgn ? pClipRgn->GetBox() : FX_RECT(0, 0, pDevice->GetWidth(), 1540 m_ClipBox = pClipRgn ? pClipRgn->GetBox() : FX_RECT(0, 0, pDevice->GetWidth(),
1541 pDevice->GetHeight()); 1541 pDevice->GetHeight());
1542 m_ClipBox.Intersect(image_rect); 1542 m_ClipBox.Intersect(image_rect);
1543 if (m_ClipBox.IsEmpty()) 1543 if (m_ClipBox.IsEmpty())
1544 return FALSE; 1544 return FALSE;
1545 1545
1546 m_pDevice = pDevice; 1546 m_pDevice = pDevice;
1547 m_pClipRgn = pClipRgn; 1547 m_pClipRgn = pClipRgn;
1548 m_MaskColor = mask_color; 1548 m_MaskColor = mask_color;
1549 m_BitmapAlpha = bitmap_alpha; 1549 m_BitmapAlpha = bitmap_alpha;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
1683 uint32_t* pSrcPalette) { 1683 uint32_t* pSrcPalette) {
1684 m_pBitmap.reset(new CFX_DIBitmap); 1684 m_pBitmap.reset(new CFX_DIBitmap);
1685 if (!m_pBitmap->Create(width, height, src_format)) { 1685 if (!m_pBitmap->Create(width, height, src_format)) {
1686 m_pBitmap.reset(); 1686 m_pBitmap.reset();
1687 return FALSE; 1687 return FALSE;
1688 } 1688 }
1689 if (pSrcPalette) 1689 if (pSrcPalette)
1690 m_pBitmap->CopyPalette(pSrcPalette); 1690 m_pBitmap->CopyPalette(pSrcPalette);
1691 return TRUE; 1691 return TRUE;
1692 } 1692 }
OLDNEW
« no previous file with comments | « core/fxge/agg/fx_agg_driver.cpp ('k') | core/fxge/dib/fx_dib_transform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698