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

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

Issue 2377393002: Move core/fxge/include to core/fxge (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
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 "core/fpdfapi/fpdf_render/cpdf_type3cache.h" 7 #include "core/fpdfapi/fpdf_render/cpdf_type3cache.h"
8 8
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
11 11
12 #include "core/fpdfapi/fpdf_font/cpdf_type3char.h" 12 #include "core/fpdfapi/fpdf_font/cpdf_type3char.h"
13 #include "core/fpdfapi/fpdf_font/cpdf_type3font.h" 13 #include "core/fpdfapi/fpdf_font/cpdf_type3font.h"
14 #include "core/fpdfapi/fpdf_render/cpdf_type3glyphs.h" 14 #include "core/fpdfapi/fpdf_render/cpdf_type3glyphs.h"
15 #include "core/fxge/include/fx_dib.h" 15 #include "core/fxge/fx_dib.h"
16 #include "core/fxge/include/fx_font.h" 16 #include "core/fxge/fx_font.h"
17 17
18 namespace { 18 namespace {
19 19
20 struct CPDF_UniqueKeyGen { 20 struct CPDF_UniqueKeyGen {
21 void Generate(int count, ...); 21 void Generate(int count, ...);
22 FX_CHAR m_Key[128]; 22 FX_CHAR m_Key[128];
23 int m_KeyLen; 23 int m_KeyLen;
24 }; 24 };
25 25
26 void CPDF_UniqueKeyGen::Generate(int count, ...) { 26 void CPDF_UniqueKeyGen::Generate(int count, ...) {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 } 162 }
163 if (!pResBitmap) 163 if (!pResBitmap)
164 return nullptr; 164 return nullptr;
165 165
166 CFX_GlyphBitmap* pGlyph = new CFX_GlyphBitmap; 166 CFX_GlyphBitmap* pGlyph = new CFX_GlyphBitmap;
167 pGlyph->m_Left = left; 167 pGlyph->m_Left = left;
168 pGlyph->m_Top = -top; 168 pGlyph->m_Top = -top;
169 pGlyph->m_Bitmap.TakeOver(pResBitmap.get()); 169 pGlyph->m_Bitmap.TakeOver(pResBitmap.get());
170 return pGlyph; 170 return pGlyph;
171 } 171 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_render/cpdf_textrenderer.h ('k') | core/fpdfapi/fpdf_render/cpdf_type3glyphs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698