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

Side by Side Diff: xfa/src/fxbarcode/qrcode/BC_QRGridSampler.h

Issue 1734823002: Get rid of CBC_AutoPtr and use std::unique_ptr instead. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 4 years, 9 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
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 #ifndef XFA_SRC_FXBARCODE_QRCODE_BC_QRGRIDSAMPLER_H_ 7 #ifndef XFA_SRC_FXBARCODE_QRCODE_BC_QRGRIDSAMPLER_H_
8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRGRIDSAMPLER_H_ 8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRGRIDSAMPLER_H_
9 9
10 #include "core/include/fxcrt/fx_basic.h"
11
10 class CBC_CommonBitMatrix; 12 class CBC_CommonBitMatrix;
11 class CBC_CommonPerspectiveTransform; 13 class CBC_CommonPerspectiveTransform;
12 class CBC_CommonDefaultGridSampler; 14 class CBC_CommonDefaultGridSampler;
13 class CBC_QRGridSampler; 15
14 class CBC_QRGridSampler { 16 class CBC_QRGridSampler {
15 private: 17 private:
16 static CBC_QRGridSampler m_gridSampler; 18 static CBC_QRGridSampler m_gridSampler;
17 19
18 public: 20 public:
19 CBC_QRGridSampler(); 21 CBC_QRGridSampler();
20 virtual ~CBC_QRGridSampler(); 22 virtual ~CBC_QRGridSampler();
21 virtual CBC_CommonBitMatrix* SampleGrid(CBC_CommonBitMatrix* image, 23 virtual CBC_CommonBitMatrix* SampleGrid(CBC_CommonBitMatrix* image,
22 int32_t dimensionX, 24 int32_t dimensionX,
23 int32_t dimensionY, 25 int32_t dimensionY,
(...skipping 15 matching lines...) Expand all
39 FX_FLOAT p4FromY, 41 FX_FLOAT p4FromY,
40 int32_t& e); 42 int32_t& e);
41 43
42 static CBC_QRGridSampler& GetInstance(); 44 static CBC_QRGridSampler& GetInstance();
43 static void CheckAndNudgePoints(CBC_CommonBitMatrix* image, 45 static void CheckAndNudgePoints(CBC_CommonBitMatrix* image,
44 CFX_FloatArray* points, 46 CFX_FloatArray* points,
45 int32_t& e); 47 int32_t& e);
46 }; 48 };
47 49
48 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRGRIDSAMPLER_H_ 50 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRGRIDSAMPLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698