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

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

Issue 2223213002: Refactor fx_ge part 3 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase Created 4 years, 4 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/fxge/dib/fx_dib_composite.cpp ('k') | core/fxge/dib/fx_dib_engine.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 "core/fxcodec/include/fx_codec.h" 7 #include "core/fxcodec/include/fx_codec.h"
8 #include "core/fxge/include/fx_dib.h" 8 #include "core/fxge/include/fx_dib.h"
9 #include "core/fxge/include/fx_ge.h"
10 9
11 class CFX_Palette { 10 class CFX_Palette {
12 public: 11 public:
13 CFX_Palette(); 12 CFX_Palette();
14 ~CFX_Palette(); 13 ~CFX_Palette();
15 14
16 FX_BOOL BuildPalette(const CFX_DIBSource* pBitmap); 15 FX_BOOL BuildPalette(const CFX_DIBSource* pBitmap);
17 uint32_t* GetPalette() const { return m_pPalette; } 16 uint32_t* GetPalette() const { return m_pPalette; }
18 uint32_t* GetColorLut() const { return m_cLut; } 17 uint32_t* GetColorLut() const { return m_cLut; }
19 uint32_t* GetAmountLut() const { return m_aLut; } 18 uint32_t* GetAmountLut() const { return m_aLut; }
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 m_pPalette = std::move(pal_8bpp); 895 m_pPalette = std::move(pal_8bpp);
897 if (!m_bExtBuf) 896 if (!m_bExtBuf)
898 FX_Free(m_pBuffer); 897 FX_Free(m_pBuffer);
899 m_bExtBuf = FALSE; 898 m_bExtBuf = FALSE;
900 m_pBuffer = dest_buf; 899 m_pBuffer = dest_buf;
901 m_bpp = (uint8_t)dest_format; 900 m_bpp = (uint8_t)dest_format;
902 m_AlphaFlag = (uint8_t)(dest_format >> 8); 901 m_AlphaFlag = (uint8_t)(dest_format >> 8);
903 m_Pitch = dest_pitch; 902 m_Pitch = dest_pitch;
904 return TRUE; 903 return TRUE;
905 } 904 }
OLDNEW
« no previous file with comments | « core/fxge/dib/fx_dib_composite.cpp ('k') | core/fxge/dib/fx_dib_engine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698