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

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

Issue 1088733002: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase. Created 5 years, 8 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/win32/fx_win32_dwrite.cpp ('k') | core/src/fxge/win32/win32_int.h » ('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 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_ 8 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_
9 #include <windows.h> 9 #include <windows.h>
10 #include <algorithm> 10 #include <algorithm>
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 } 1001 }
1002 if (pMatrix) { 1002 if (pMatrix) {
1003 CallFunc(GdipDeleteMatrix)(pMatrix); 1003 CallFunc(GdipDeleteMatrix)(pMatrix);
1004 } 1004 }
1005 FX_Free(points); 1005 FX_Free(points);
1006 FX_Free(types); 1006 FX_Free(types);
1007 CallFunc(GdipDeletePath)(pGpPath); 1007 CallFunc(GdipDeletePath)(pGpPath);
1008 CallFunc(GdipDeleteGraphics)(pGraphics); 1008 CallFunc(GdipDeleteGraphics)(pGraphics);
1009 return TRUE; 1009 return TRUE;
1010 } 1010 }
1011 class GpStream FX_FINAL : public IStream, public CFX_Object 1011 class GpStream FX_FINAL : public IStream
1012 { 1012 {
1013 LONG m_RefCount; 1013 LONG m_RefCount;
1014 int m_ReadPos; 1014 int m_ReadPos;
1015 CFX_ByteTextBuf m_InterStream; 1015 CFX_ByteTextBuf m_InterStream;
1016 public: 1016 public:
1017 GpStream() 1017 GpStream()
1018 { 1018 {
1019 m_RefCount = 1; 1019 m_RefCount = 1;
1020 m_ReadPos = 0; 1020 m_ReadPos = 0;
1021 } 1021 }
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 FXSYS_memcpy32(pData, pInfo->pScan0, dest_pitch * height); 1281 FXSYS_memcpy32(pData, pInfo->pScan0, dest_pitch * height);
1282 } else for (int i = 0; i < height; i ++) { 1282 } else for (int i = 0; i < height; i ++) {
1283 FXSYS_memcpy32(pData + dest_pitch * i, pInfo->pScan0 + pInfo->Stride * i, dest_pitch); 1283 FXSYS_memcpy32(pData + dest_pitch * i, pInfo->pScan0 + pInfo->Stride * i, dest_pitch);
1284 } 1284 }
1285 CFX_DIBitmap* pDIBitmap = _FX_WindowsDIB_LoadFromBuf(pInfo->pbmi, pData, pIn fo->pbmi->bmiHeader.biBitCount == 32); 1285 CFX_DIBitmap* pDIBitmap = _FX_WindowsDIB_LoadFromBuf(pInfo->pbmi, pData, pIn fo->pbmi->bmiHeader.biBitCount == 32);
1286 FX_Free(pData); 1286 FX_Free(pData);
1287 FreeDIBitmap(pInfo); 1287 FreeDIBitmap(pInfo);
1288 return pDIBitmap; 1288 return pDIBitmap;
1289 } 1289 }
1290 #endif 1290 #endif
OLDNEW
« no previous file with comments | « core/src/fxge/win32/fx_win32_dwrite.cpp ('k') | core/src/fxge/win32/win32_int.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698