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

Side by Side Diff: core/fpdfapi/fpdf_render/cpdf_type3glyphs.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
« no previous file with comments | « core/fpdfapi/fpdf_render/cpdf_type3cache.cpp ('k') | core/fpdfapi/fpdf_render/fpdf_render.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 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_type3glyphs.h" 7 #include "core/fpdfapi/fpdf_render/cpdf_type3glyphs.h"
8 8
9 #include <map> 9 #include <map>
10 10
11 #include "core/fxge/include/fx_font.h" 11 #include "core/fxge/fx_font.h"
12 12
13 CPDF_Type3Glyphs::CPDF_Type3Glyphs() 13 CPDF_Type3Glyphs::CPDF_Type3Glyphs()
14 : m_TopBlueCount(0), m_BottomBlueCount(0) {} 14 : m_TopBlueCount(0), m_BottomBlueCount(0) {}
15 15
16 CPDF_Type3Glyphs::~CPDF_Type3Glyphs() { 16 CPDF_Type3Glyphs::~CPDF_Type3Glyphs() {
17 for (const auto& pair : m_GlyphMap) 17 for (const auto& pair : m_GlyphMap)
18 delete pair.second; 18 delete pair.second;
19 } 19 }
20 20
21 static int _AdjustBlue(FX_FLOAT pos, int& count, int blues[]) { 21 static int _AdjustBlue(FX_FLOAT pos, int& count, int blues[]) {
(...skipping 15 matching lines...) Expand all
37 return new_pos; 37 return new_pos;
38 } 38 }
39 39
40 void CPDF_Type3Glyphs::AdjustBlue(FX_FLOAT top, 40 void CPDF_Type3Glyphs::AdjustBlue(FX_FLOAT top,
41 FX_FLOAT bottom, 41 FX_FLOAT bottom,
42 int& top_line, 42 int& top_line,
43 int& bottom_line) { 43 int& bottom_line) {
44 top_line = _AdjustBlue(top, m_TopBlueCount, m_TopBlue); 44 top_line = _AdjustBlue(top, m_TopBlueCount, m_TopBlue);
45 bottom_line = _AdjustBlue(bottom, m_BottomBlueCount, m_BottomBlue); 45 bottom_line = _AdjustBlue(bottom, m_BottomBlueCount, m_BottomBlue);
46 } 46 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_render/cpdf_type3cache.cpp ('k') | core/fpdfapi/fpdf_render/fpdf_render.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698