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

Side by Side Diff: core/fxge/ge/cfx_facecache.cpp

Issue 2292503002: Refactor fx_font part 4 (Closed)
Patch Set: Comments Created 4 years, 3 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/fpdfdoc/cpdf_interform.cpp ('k') | core/fxge/ge/cfx_fontmapper.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/fxge/include/cfx_facecache.h" 7 #include "core/fxge/include/cfx_facecache.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "core/fxge/ge/fx_text_int.h" 11 #include "core/fxge/ge/fx_text_int.h"
12 #include "core/fxge/include/cfx_fontmgr.h" 12 #include "core/fxge/include/cfx_fontmgr.h"
13 #include "core/fxge/include/cfx_gemodule.h" 13 #include "core/fxge/include/cfx_gemodule.h"
14 #include "core/fxge/include/cfx_pathdata.h" 14 #include "core/fxge/include/cfx_pathdata.h"
15 #include "core/fxge/include/cfx_substfont.h"
15 #include "core/fxge/include/fx_freetype.h" 16 #include "core/fxge/include/fx_freetype.h"
16 17
17 #ifdef _SKIA_SUPPORT_ 18 #ifdef _SKIA_SUPPORT_
18 #include "third_party/skia/include/core/SkStream.h" 19 #include "third_party/skia/include/core/SkStream.h"
19 #include "third_party/skia/include/core/SkTypeface.h" 20 #include "third_party/skia/include/core/SkTypeface.h"
20 #endif 21 #endif
21 22
22 namespace { 23 namespace {
23 24
24 void GammaAdjust(uint8_t* pData, 25 void GammaAdjust(uint8_t* pData,
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 return it2->second; 375 return it2->second;
375 376
376 CFX_GlyphBitmap* pGlyphBitmap = RenderGlyph(pFont, glyph_index, bFontStyle, 377 CFX_GlyphBitmap* pGlyphBitmap = RenderGlyph(pFont, glyph_index, bFontStyle,
377 pMatrix, dest_width, anti_alias); 378 pMatrix, dest_width, anti_alias);
378 if (!pGlyphBitmap) 379 if (!pGlyphBitmap)
379 return nullptr; 380 return nullptr;
380 381
381 pSizeCache->m_GlyphMap[glyph_index] = pGlyphBitmap; 382 pSizeCache->m_GlyphMap[glyph_index] = pGlyphBitmap;
382 return pGlyphBitmap; 383 return pGlyphBitmap;
383 } 384 }
OLDNEW
« no previous file with comments | « core/fpdfdoc/cpdf_interform.cpp ('k') | core/fxge/ge/cfx_fontmapper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698