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

Side by Side Diff: core/fpdfapi/render/render_int.h

Issue 2534953004: Return unique_ptrs from CFX_DIBitmap::Clone(). (Closed)
Patch Set: nits Created 4 years 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/fpdfapi/render/fpdf_render_loadimage.cpp ('k') | core/fxcodec/codec/fx_codec_progress.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 #ifndef CORE_FPDFAPI_RENDER_RENDER_INT_H_ 7 #ifndef CORE_FPDFAPI_RENDER_RENDER_INT_H_
8 #define CORE_FPDFAPI_RENDER_RENDER_INT_H_ 8 #define CORE_FPDFAPI_RENDER_RENDER_INT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 uint8_t* GetBuffer() const override; 78 uint8_t* GetBuffer() const override;
79 const uint8_t* GetScanline(int line) const override; 79 const uint8_t* GetScanline(int line) const override;
80 void DownSampleScanline(int line, 80 void DownSampleScanline(int line,
81 uint8_t* dest_scan, 81 uint8_t* dest_scan,
82 int dest_bpp, 82 int dest_bpp,
83 int dest_width, 83 int dest_width,
84 bool bFlipX, 84 bool bFlipX,
85 int clip_left, 85 int clip_left,
86 int clip_width) const override; 86 int clip_width) const override;
87 87
88 CFX_DIBitmap* GetBitmap() const;
89 void ReleaseBitmap(CFX_DIBitmap* pBitmap) const;
90 uint32_t GetMatteColor() const { return m_MatteColor; } 88 uint32_t GetMatteColor() const { return m_MatteColor; }
91 89
92 int StartLoadDIBSource(CPDF_Document* pDoc, 90 int StartLoadDIBSource(CPDF_Document* pDoc,
93 const CPDF_Stream* pStream, 91 const CPDF_Stream* pStream,
94 bool bHasMask, 92 bool bHasMask,
95 CPDF_Dictionary* pFormResources, 93 CPDF_Dictionary* pFormResources,
96 CPDF_Dictionary* pPageResources, 94 CPDF_Dictionary* pPageResources,
97 bool bStdCS = false, 95 bool bStdCS = false,
98 uint32_t GroupFamily = 0, 96 uint32_t GroupFamily = 0,
99 bool bLoadMask = false); 97 bool bLoadMask = false);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 CCodec_ScanlineDecoder* FPDFAPI_CreateFlateDecoder( 176 CCodec_ScanlineDecoder* FPDFAPI_CreateFlateDecoder(
179 const uint8_t* src_buf, 177 const uint8_t* src_buf,
180 uint32_t src_size, 178 uint32_t src_size,
181 int width, 179 int width,
182 int height, 180 int height,
183 int nComps, 181 int nComps,
184 int bpc, 182 int bpc,
185 const CPDF_Dictionary* pParams); 183 const CPDF_Dictionary* pParams);
186 184
187 #endif // CORE_FPDFAPI_RENDER_RENDER_INT_H_ 185 #endif // CORE_FPDFAPI_RENDER_RENDER_INT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/render/fpdf_render_loadimage.cpp ('k') | core/fxcodec/codec/fx_codec_progress.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698