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

Side by Side Diff: core/fxge/include/fx_ge_win32.h

Issue 2149903002: Use smart pointers for various Jbig2 decoding contexts (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 4 years, 5 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/include/fx_dib.h ('k') | core/fxge/win32/fx_win32_dib.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 #ifndef CORE_FXGE_INCLUDE_FX_GE_WIN32_H_ 7 #ifndef CORE_FXGE_INCLUDE_FX_GE_WIN32_H_
8 #define CORE_FXGE_INCLUDE_FX_GE_WIN32_H_ 8 #define CORE_FXGE_INCLUDE_FX_GE_WIN32_H_
9 9
10 #ifdef _WIN32 10 #ifdef _WIN32
(...skipping 26 matching lines...) Expand all
37 } WINDIB_Open_Args_; 37 } WINDIB_Open_Args_;
38 38
39 class CFX_WindowsDIB : public CFX_DIBitmap { 39 class CFX_WindowsDIB : public CFX_DIBitmap {
40 public: 40 public:
41 CFX_WindowsDIB(HDC hDC, int width, int height); 41 CFX_WindowsDIB(HDC hDC, int width, int height);
42 ~CFX_WindowsDIB() override; 42 ~CFX_WindowsDIB() override;
43 43
44 static CFX_ByteString GetBitmapInfo(const CFX_DIBitmap* pBitmap); 44 static CFX_ByteString GetBitmapInfo(const CFX_DIBitmap* pBitmap);
45 static CFX_DIBitmap* LoadFromBuf(BITMAPINFO* pbmi, void* pData); 45 static CFX_DIBitmap* LoadFromBuf(BITMAPINFO* pbmi, void* pData);
46 static HBITMAP GetDDBitmap(const CFX_DIBitmap* pBitmap, HDC hDC); 46 static HBITMAP GetDDBitmap(const CFX_DIBitmap* pBitmap, HDC hDC);
47 static CFX_DIBitmap* LoadFromDDB(HDC hDC,
48 HBITMAP hBitmap,
49 uint32_t* pPalette = nullptr,
50 uint32_t size = 256);
51 static CFX_DIBitmap* LoadFromFile(const FX_WCHAR* filename); 47 static CFX_DIBitmap* LoadFromFile(const FX_WCHAR* filename);
52 static CFX_DIBitmap* LoadFromFile(const FX_CHAR* filename); 48 static CFX_DIBitmap* LoadFromFile(const FX_CHAR* filename);
53 static CFX_DIBitmap* LoadDIBitmap(WINDIB_Open_Args_ args); 49 static CFX_DIBitmap* LoadDIBitmap(WINDIB_Open_Args_ args);
54 50
55 HDC GetDC() const { return m_hMemDC; } 51 HDC GetDC() const { return m_hMemDC; }
56 HBITMAP GetWindowsBitmap() const { return m_hBitmap; } 52 HBITMAP GetWindowsBitmap() const { return m_hBitmap; }
57 53
58 void LoadFromDevice(HDC hDC, int left, int top); 54 void LoadFromDevice(HDC hDC, int left, int top);
59 void SetToDevice(HDC hDC, int left, int top); 55 void SetToDevice(HDC hDC, int left, int top);
60 56
(...skipping 23 matching lines...) Expand all
84 protected: 80 protected:
85 HBITMAP m_hBitmap; 81 HBITMAP m_hBitmap;
86 82
87 HBITMAP m_hOldBitmap; 83 HBITMAP m_hOldBitmap;
88 84
89 HDC m_hDC; 85 HDC m_hDC;
90 }; 86 };
91 #endif 87 #endif
92 88
93 #endif // CORE_FXGE_INCLUDE_FX_GE_WIN32_H_ 89 #endif // CORE_FXGE_INCLUDE_FX_GE_WIN32_H_
OLDNEW
« no previous file with comments | « core/fxge/include/fx_dib.h ('k') | core/fxge/win32/fx_win32_dib.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698