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

Side by Side Diff: core/fxge/ge/cfx_cliprgn.h

Issue 2216853004: Refactor fx_ge part 2 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Fixing build, comments 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_main.cpp ('k') | core/fxge/ge/cfx_cliprgn.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef CORE_FXGE_GE_CFX_CLIPRGN_H_
8 #define CORE_FXGE_GE_CFX_CLIPRGN_H_
9
10 #include "core/fxge/include/fx_dib.h"
11
12 class CFX_ClipRgn {
13 public:
14 enum ClipType { RectI, MaskF };
15
16 CFX_ClipRgn(int device_width, int device_height);
17 CFX_ClipRgn(const CFX_ClipRgn& src);
18 ~CFX_ClipRgn();
19
20 ClipType GetType() const { return m_Type; }
21 const FX_RECT& GetBox() const { return m_Box; }
22 CFX_DIBitmapRef GetMask() const { return m_Mask; }
23
24 void Reset(const FX_RECT& rect);
25 void IntersectRect(const FX_RECT& rect);
26 void IntersectMaskF(int left, int top, CFX_DIBitmapRef Mask);
27
28 private:
29 void IntersectMaskRect(FX_RECT rect, FX_RECT mask_box, CFX_DIBitmapRef Mask);
30
31 ClipType m_Type;
32 FX_RECT m_Box;
33 CFX_DIBitmapRef m_Mask;
34 };
35
36 #endif // CORE_FXGE_GE_CFX_CLIPRGN_H_
OLDNEW
« no previous file with comments | « core/fxge/dib/fx_dib_main.cpp ('k') | core/fxge/ge/cfx_cliprgn.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698