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

Side by Side Diff: core/fpdfapi/fpdf_render/cpdf_type3cache.h

Issue 2393593002: Move core/fpdfapi/fpdf_render to core/fpdfapi/render (Closed)
Patch Set: Rebase to master Created 4 years, 2 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
(Empty)
1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef CORE_FPDFAPI_FPDF_RENDER_CPDF_TYPE3CACHE_H_
8 #define CORE_FPDFAPI_FPDF_RENDER_CPDF_TYPE3CACHE_H_
9
10 #include <map>
11
12 #include "core/fpdfapi/font/cpdf_type3font.h"
13 #include "core/fxcrt/fx_coordinates.h"
14 #include "core/fxcrt/fx_string.h"
15 #include "core/fxcrt/fx_system.h"
16
17 class CPDF_Type3Glyphs;
18
19 class CPDF_Type3Cache {
20 public:
21 explicit CPDF_Type3Cache(CPDF_Type3Font* pFont);
22 ~CPDF_Type3Cache();
23
24 CFX_GlyphBitmap* LoadGlyph(uint32_t charcode,
25 const CFX_Matrix* pMatrix,
26 FX_FLOAT retinaScaleX,
27 FX_FLOAT retinaScaleY);
28
29 private:
30 CFX_GlyphBitmap* RenderGlyph(CPDF_Type3Glyphs* pSize,
31 uint32_t charcode,
32 const CFX_Matrix* pMatrix,
33 FX_FLOAT retinaScaleX,
34 FX_FLOAT retinaScaleY);
35
36 CPDF_Type3Font* const m_pFont;
37 std::map<CFX_ByteString, CPDF_Type3Glyphs*> m_SizeMap;
38 };
39
40 #endif // CORE_FPDFAPI_FPDF_RENDER_CPDF_TYPE3CACHE_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_render/cpdf_textrenderer.h ('k') | core/fpdfapi/fpdf_render/cpdf_type3cache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698