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

Side by Side Diff: core/src/fxge/skia/fx_skia_device.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/skia/fx_skia_blitter_new.h ('k') | core/src/fxge/win32/fx_win32_dwrite.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 #include "../../../include/fxge/fx_ge.h" 5 #include "../../../include/fxge/fx_ge.h"
6 //#define _SKIA_SUPPORT_ 6 //#define _SKIA_SUPPORT_
7 #if defined(_SKIA_SUPPORT_) 7 #if defined(_SKIA_SUPPORT_)
8 #include "../../../include/fxcodec/fx_codec.h" 8 #include "../../../include/fxcodec/fx_codec.h"
9 9
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 } else { // hairline 110 } else { // hairline
111 if (paint->isAntiAlias()) { 111 if (paint->isAntiAlias()) {
112 proc = SkScan::AntiHairPath; 112 proc = SkScan::AntiHairPath;
113 } else { 113 } else {
114 proc = SkScan::HairPath; 114 proc = SkScan::HairPath;
115 } 115 }
116 } 116 }
117 proc(*devPathPtr, rect, blitter); 117 proc(*devPathPtr, rect, blitter);
118 } 118 }
119 119
120 class CSkia_PathData : public CFX_Object 120 class CSkia_PathData
121 { 121 {
122 public: 122 public:
123 CSkia_PathData() {} 123 CSkia_PathData() {}
124 ~CSkia_PathData() {} 124 ~CSkia_PathData() {}
125 SkPath m_PathData; 125 SkPath m_PathData;
126 126
127 void BuildPath(const CFX_PathData* pPathData, const C FX_AffineMatrix* pObject2Device); 127 void BuildPath(const CFX_PathData* pPathData, const C FX_AffineMatrix* pObject2Device);
128 }; 128 };
129 129
130 void CSkia_PathData::BuildPath(const CFX_PathData* pPathData, const CFX_AffineMa trix* pObject2Device) 130 void CSkia_PathData::BuildPath(const CFX_PathData* pPathData, const CFX_AffineMa trix* pObject2Device)
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 CFX_SkiaDeviceDriver* pDriver = FX_NEW CFX_SkiaDeviceDriver(pBitmap, di ther_bits, FALSE, pOriDevice, FALSE); 522 CFX_SkiaDeviceDriver* pDriver = FX_NEW CFX_SkiaDeviceDriver(pBitmap, di ther_bits, FALSE, pOriDevice, FALSE);
523 SetDeviceDriver(pDriver); 523 SetDeviceDriver(pDriver);
524 return TRUE; 524 return TRUE;
525 } 525 }
526 CFX_SkiaDevice::~CFX_SkiaDevice() 526 CFX_SkiaDevice::~CFX_SkiaDevice()
527 { 527 {
528 if (m_bOwnedBitmap && GetBitmap()) delete GetBitmap(); 528 if (m_bOwnedBitmap && GetBitmap()) delete GetBitmap();
529 } 529 }
530 530
531 #endif 531 #endif
OLDNEW
« no previous file with comments | « core/src/fxge/skia/fx_skia_blitter_new.h ('k') | core/src/fxge/win32/fx_win32_dwrite.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698