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

Side by Side Diff: core/src/fxge/dib/fx_dib_convert.cpp

Issue 1088733002: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase. Created 5 years, 8 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/src/fxge/dib/dib_int.h ('k') | core/src/fxge/ge/fx_ge_ps.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 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 "../../../include/fxge/fx_dib.h" 7 #include "../../../include/fxge/fx_dib.h"
8 #include "../../../include/fxge/fx_ge.h" 8 #include "../../../include/fxge/fx_ge.h"
9 #include "../../../include/fxcodec/fx_codec.h" 9 #include "../../../include/fxcodec/fx_codec.h"
10 const FX_DWORD g_dwWinPalette[256] = { 10 const FX_DWORD g_dwWinPalette[256] = {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 0xff0033FF, 0xff0033CC, 0xff003399, 0xff003366, 0xff003333, 0xff003300, 90 0xff0033FF, 0xff0033CC, 0xff003399, 0xff003366, 0xff003333, 0xff003300,
91 0xff0000FF, 0xff0000CC, 0xff000099, 0xff000066, 0xff000033, 91 0xff0000FF, 0xff0000CC, 0xff000099, 0xff000066, 0xff000033,
92 0xffEE0000, 0xffDD0000, 0xffBB0000, 0xffAA0000, 0xff880000, 0xff770000, 92 0xffEE0000, 0xffDD0000, 0xffBB0000, 0xffAA0000, 0xff880000, 0xff770000,
93 0xff550000, 0xff440000, 0xff220000, 0xff110000, 0xff00EE00, 0xff00DD00, 93 0xff550000, 0xff440000, 0xff220000, 0xff110000, 0xff00EE00, 0xff00DD00,
94 0xff00BB00, 0xff00AA00, 0xff008800, 0xff007700, 0xff005500, 0xff004400, 94 0xff00BB00, 0xff00AA00, 0xff008800, 0xff007700, 0xff005500, 0xff004400,
95 0xff002200, 0xff001100, 0xff0000EE, 0xff0000DD, 0xff0000BB, 0xff0000AA, 95 0xff002200, 0xff001100, 0xff0000EE, 0xff0000DD, 0xff0000BB, 0xff0000AA,
96 0xff000088, 0xff000077, 0xff000055, 0xff000044, 0xff000022, 0xff000011, 96 0xff000088, 0xff000077, 0xff000055, 0xff000044, 0xff000022, 0xff000011,
97 0xffEEEEEE, 0xffDDDDDD, 0xffBBBBBB, 0xffAAAAAA, 0xff888888, 0xff777777, 97 0xffEEEEEE, 0xffDDDDDD, 0xffBBBBBB, 0xffAAAAAA, 0xff888888, 0xff777777,
98 0xff555555, 0xff444444, 0xff222222, 0xff111111, 0xff000000 98 0xff555555, 0xff444444, 0xff222222, 0xff111111, 0xff000000
99 }; 99 };
100 class CFX_Palette : public CFX_Object 100 class CFX_Palette
101 { 101 {
102 public: 102 public:
103 CFX_Palette(); 103 CFX_Palette();
104 ~CFX_Palette(); 104 ~CFX_Palette();
105 public: 105 public:
106 FX_BOOL BuildPalette(const CFX_DIBSource* pBitmap, int dwPaletteType); 106 FX_BOOL BuildPalette(const CFX_DIBSource* pBitmap, int dwPaletteType);
107 FX_DWORD* GetPalette() const 107 FX_DWORD* GetPalette() const
108 { 108 {
109 return m_pPalette; 109 return m_pPalette;
110 } 110 }
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 if (!m_bExtBuf) { 1078 if (!m_bExtBuf) {
1079 FX_Free(m_pBuffer); 1079 FX_Free(m_pBuffer);
1080 } 1080 }
1081 m_bExtBuf = FALSE; 1081 m_bExtBuf = FALSE;
1082 m_pBuffer = dest_buf; 1082 m_pBuffer = dest_buf;
1083 m_bpp = (FX_BYTE)dest_format; 1083 m_bpp = (FX_BYTE)dest_format;
1084 m_AlphaFlag = (FX_BYTE)(dest_format >> 8); 1084 m_AlphaFlag = (FX_BYTE)(dest_format >> 8);
1085 m_Pitch = dest_pitch; 1085 m_Pitch = dest_pitch;
1086 return TRUE; 1086 return TRUE;
1087 } 1087 }
OLDNEW
« no previous file with comments | « core/src/fxge/dib/dib_int.h ('k') | core/src/fxge/ge/fx_ge_ps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698