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

Side by Side Diff: core/fxge/agg/fx_agg_driver.cpp

Issue 2075383002: Remove some fx_dib functions with unused parameters. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Fix build, fix skia Created 4 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 | « no previous file | core/fxge/dib/fx_dib_convert.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/agg/fx_agg_driver.h" 7 #include "core/fxge/agg/fx_agg_driver.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after
1722 } 1722 }
1723 1723
1724 FX_BOOL bRet = TRUE; 1724 FX_BOOL bRet = TRUE;
1725 left = std::min(left, 0); 1725 left = std::min(left, 0);
1726 top = std::min(top, 0); 1726 top = std::min(top, 0);
1727 if (m_bRgbByteOrder) { 1727 if (m_bRgbByteOrder) {
1728 RgbByteOrderTransferBitmap(pBitmap, 0, 0, rect.Width(), rect.Height(), 1728 RgbByteOrderTransferBitmap(pBitmap, 0, 0, rect.Width(), rect.Height(),
1729 pBack, left, top); 1729 pBack, left, top);
1730 } else { 1730 } else {
1731 bRet = pBitmap->TransferBitmap(0, 0, rect.Width(), rect.Height(), pBack, 1731 bRet = pBitmap->TransferBitmap(0, 0, rect.Width(), rect.Height(), pBack,
1732 left, top, nullptr); 1732 left, top);
1733 } 1733 }
1734 delete pBack; 1734 delete pBack;
1735 return bRet; 1735 return bRet;
1736 } 1736 }
1737 1737
1738 CFX_DIBitmap* CFX_AggDeviceDriver::GetBackDrop() { 1738 CFX_DIBitmap* CFX_AggDeviceDriver::GetBackDrop() {
1739 return m_pOriDevice; 1739 return m_pOriDevice;
1740 } 1740 }
1741 1741
1742 FX_BOOL CFX_AggDeviceDriver::SetDIBits(const CFX_DIBSource* pBitmap, 1742 FX_BOOL CFX_AggDeviceDriver::SetDIBits(const CFX_DIBSource* pBitmap,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1858 SetDeviceDriver(pDriver); 1858 SetDeviceDriver(pDriver);
1859 return true; 1859 return true;
1860 } 1860 }
1861 1861
1862 CFX_FxgeDevice::~CFX_FxgeDevice() { 1862 CFX_FxgeDevice::~CFX_FxgeDevice() {
1863 if (m_bOwnedBitmap) { 1863 if (m_bOwnedBitmap) {
1864 delete GetBitmap(); 1864 delete GetBitmap();
1865 } 1865 }
1866 } 1866 }
1867 #endif 1867 #endif
OLDNEW
« no previous file with comments | « no previous file | core/fxge/dib/fx_dib_convert.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698