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

Side by Side Diff: core/fxge/cfx_renderdevice.h

Issue 2377393002: Move core/fxge/include to core/fxge (Closed)
Patch Set: Rebase to master Created 4 years, 2 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/cfx_pathdata.h ('k') | core/fxge/cfx_substfont.h » ('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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_CFX_RENDERDEVICE_H_ 7 #ifndef CORE_FXGE_CFX_RENDERDEVICE_H_
8 #define CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ 8 #define CORE_FXGE_CFX_RENDERDEVICE_H_
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "core/fxge/include/cfx_gemodule.h" 12 #include "core/fxge/cfx_gemodule.h"
13 #include "core/fxge/include/fx_dib.h" 13 #include "core/fxge/fx_dib.h"
14 #include "core/fxge/include/fx_font.h" 14 #include "core/fxge/fx_font.h"
15 15
16 class CFX_Font; 16 class CFX_Font;
17 class CFX_GraphStateData; 17 class CFX_GraphStateData;
18 class IFX_RenderDeviceDriver; 18 class IFX_RenderDeviceDriver;
19 19
20 #define FXDC_DEVICE_CLASS 1 20 #define FXDC_DEVICE_CLASS 1
21 #define FXDC_PIXEL_WIDTH 2 21 #define FXDC_PIXEL_WIDTH 2
22 #define FXDC_PIXEL_HEIGHT 3 22 #define FXDC_PIXEL_HEIGHT 3
23 #define FXDC_BITS_PIXEL 4 23 #define FXDC_BITS_PIXEL 4
24 #define FXDC_HORZ_SIZE 5 24 #define FXDC_HORZ_SIZE 5
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 int fill_mode, 130 int fill_mode,
131 int blend_type); 131 int blend_type);
132 FX_BOOL SetPixel(int x, int y, uint32_t color); 132 FX_BOOL SetPixel(int x, int y, uint32_t color);
133 FX_BOOL FillRect(const FX_RECT* pRect, uint32_t color) { 133 FX_BOOL FillRect(const FX_RECT* pRect, uint32_t color) {
134 return FillRectWithBlend(pRect, color, FXDIB_BLEND_NORMAL); 134 return FillRectWithBlend(pRect, color, FXDIB_BLEND_NORMAL);
135 } 135 }
136 FX_BOOL FillRectWithBlend(const FX_RECT* pRect, 136 FX_BOOL FillRectWithBlend(const FX_RECT* pRect,
137 uint32_t color, 137 uint32_t color,
138 int blend_type); 138 int blend_type);
139 FX_BOOL DrawCosmeticLine(FX_FLOAT x1, 139 FX_BOOL DrawCosmeticLine(FX_FLOAT x1,
140 FX_FLOAT y1, 140 FX_FLOAT y1,
141 FX_FLOAT x2, 141 FX_FLOAT x2,
142 FX_FLOAT y2, 142 FX_FLOAT y2,
143 uint32_t color, 143 uint32_t color,
144 int fill_mode, 144 int fill_mode,
145 int blend_type); 145 int blend_type);
146 146
147 FX_BOOL GetDIBits(CFX_DIBitmap* pBitmap, int left, int top); 147 FX_BOOL GetDIBits(CFX_DIBitmap* pBitmap, int left, int top);
148 CFX_DIBitmap* GetBackDrop(); 148 CFX_DIBitmap* GetBackDrop();
149 FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap, int left, int top) { 149 FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap, int left, int top) {
150 return SetDIBitsWithBlend(pBitmap, left, top, FXDIB_BLEND_NORMAL); 150 return SetDIBitsWithBlend(pBitmap, left, top, FXDIB_BLEND_NORMAL);
151 } 151 }
152 FX_BOOL SetDIBitsWithBlend(const CFX_DIBSource* pBitmap, 152 FX_BOOL SetDIBitsWithBlend(const CFX_DIBSource* pBitmap,
153 int left, 153 int left,
154 int top, 154 int top,
155 int blend_type); 155 int blend_type);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 CFX_DIBitmap* m_pBitmap; 248 CFX_DIBitmap* m_pBitmap;
249 int m_Width; 249 int m_Width;
250 int m_Height; 250 int m_Height;
251 int m_bpp; 251 int m_bpp;
252 int m_RenderCaps; 252 int m_RenderCaps;
253 int m_DeviceClass; 253 int m_DeviceClass;
254 FX_RECT m_ClipBox; 254 FX_RECT m_ClipBox;
255 std::unique_ptr<IFX_RenderDeviceDriver> m_pDeviceDriver; 255 std::unique_ptr<IFX_RenderDeviceDriver> m_pDeviceDriver;
256 }; 256 };
257 257
258 #endif // CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ 258 #endif // CORE_FXGE_CFX_RENDERDEVICE_H_
OLDNEW
« no previous file with comments | « core/fxge/cfx_pathdata.h ('k') | core/fxge/cfx_substfont.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698