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

Side by Side Diff: core/src/fxge/ge/fx_ge.cpp

Issue 1679743003: CPDF_TextStream::m_pObjArray is always NULL (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rename Created 4 years, 10 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 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 #include "core/include/fxge/fx_ge.h" 7 #include "core/include/fxge/fx_ge.h"
8 8
9 #include "text_int.h" 9 #include "core/src/fxge/ge/fx_text_int.h"
10 10
11 static CFX_GEModule* g_pGEModule = NULL; 11 static CFX_GEModule* g_pGEModule = NULL;
12 CFX_GEModule::CFX_GEModule(const char** pUserFontPaths) { 12 CFX_GEModule::CFX_GEModule(const char** pUserFontPaths) {
13 m_pFontCache = NULL; 13 m_pFontCache = NULL;
14 m_pFontMgr = NULL; 14 m_pFontMgr = NULL;
15 m_FTLibrary = NULL; 15 m_FTLibrary = NULL;
16 m_pCodecModule = NULL; 16 m_pCodecModule = NULL;
17 m_pPlatformData = NULL; 17 m_pPlatformData = NULL;
18 m_pUserFontPaths = pUserFontPaths; 18 m_pUserFontPaths = pUserFontPaths;
19 } 19 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 int i = 0; 51 int i = 0;
52 while (i < 256) { 52 while (i < 256) {
53 m_GammaValue[i] = 53 m_GammaValue[i] =
54 (uint8_t)(FXSYS_pow((FX_FLOAT)i / 255, gammaValue) * 255.0f + 0.5f); 54 (uint8_t)(FXSYS_pow((FX_FLOAT)i / 255, gammaValue) * 255.0f + 0.5f);
55 i++; 55 i++;
56 } 56 }
57 } 57 }
58 const uint8_t* CFX_GEModule::GetTextGammaTable() { 58 const uint8_t* CFX_GEModule::GetTextGammaTable() {
59 return m_GammaValue; 59 return m_GammaValue;
60 } 60 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698