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

Side by Side Diff: core/fxge/win32/win32_int.h

Issue 1828283002: support gradients and stroke+fill (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: address comments Created 4 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/fxge/skia/fx_skia_device.cpp ('k') | core/include/fxge/fx_ge.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 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_WIN32_WIN32_INT_H_ 7 #ifndef CORE_FXGE_WIN32_WIN32_INT_H_
8 #define CORE_FXGE_WIN32_WIN32_INT_H_ 8 #define CORE_FXGE_WIN32_WIN32_INT_H_
9 9
10 #include "core/fxge/win32/dwrite_int.h" 10 #include "core/fxge/win32/dwrite_int.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 int blend_type) override; 138 int blend_type) override;
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 FX_DWORD color, 143 FX_DWORD color,
144 int alpha_flag, 144 int alpha_flag,
145 void* pIccTransform, 145 void* pIccTransform,
146 int blend_type) override; 146 int blend_type) override;
147 FX_BOOL GetClipBox(FX_RECT* pRect) override; 147 FX_BOOL GetClipBox(FX_RECT* pRect) override;
148 void* GetPlatformSurface() override { return (void*)m_hDC; } 148 void* GetPlatformSurface() const override { return (void*)m_hDC; }
149 149
150 virtual void* GetClipRgn(); 150 virtual void* GetClipRgn();
151 virtual FX_BOOL SetClipRgn(void* pRgn); 151 virtual FX_BOOL SetClipRgn(void* pRgn);
152 virtual FX_BOOL DeleteDeviceRgn(void* pRgn); 152 virtual FX_BOOL DeleteDeviceRgn(void* pRgn);
153 virtual void DrawLine(FX_FLOAT x1, FX_FLOAT y1, FX_FLOAT x2, FX_FLOAT y2); 153 virtual void DrawLine(FX_FLOAT x1, FX_FLOAT y1, FX_FLOAT x2, FX_FLOAT y2);
154 154
155 FX_BOOL GDI_SetDIBits(const CFX_DIBitmap* pBitmap, 155 FX_BOOL GDI_SetDIBits(const CFX_DIBitmap* pBitmap,
156 const FX_RECT* pSrcRect, 156 const FX_RECT* pSrcRect,
157 int left, 157 int left,
158 int top, 158 int top,
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 int blend_type) override; 345 int blend_type) override;
346 FX_BOOL DrawDeviceText(int nChars, 346 FX_BOOL DrawDeviceText(int nChars,
347 const FXTEXT_CHARPOS* pCharPos, 347 const FXTEXT_CHARPOS* pCharPos,
348 CFX_Font* pFont, 348 CFX_Font* pFont,
349 CFX_FontCache* pCache, 349 CFX_FontCache* pCache,
350 const CFX_Matrix* pObject2Device, 350 const CFX_Matrix* pObject2Device,
351 FX_FLOAT font_size, 351 FX_FLOAT font_size,
352 FX_DWORD color, 352 FX_DWORD color,
353 int alpha_flag, 353 int alpha_flag,
354 void* pIccTransform) override; 354 void* pIccTransform) override;
355 void* GetPlatformSurface() override { return (void*)m_hDC; } 355 void* GetPlatformSurface() const override { return (void*)m_hDC; }
356 356
357 HDC m_hDC; 357 HDC m_hDC;
358 FX_BOOL m_bCmykOutput; 358 FX_BOOL m_bCmykOutput;
359 int m_Width, m_Height, m_nBitsPerPixel; 359 int m_Width, m_Height, m_nBitsPerPixel;
360 int m_HorzSize, m_VertSize; 360 int m_HorzSize, m_VertSize;
361 CPSOutput* m_pPSOutput; 361 CPSOutput* m_pPSOutput;
362 CFX_PSRenderer m_PSRenderer; 362 CFX_PSRenderer m_PSRenderer;
363 }; 363 };
364 void _Color2Argb(FX_ARGB& argb, 364 void _Color2Argb(FX_ARGB& argb,
365 FX_DWORD color, 365 FX_DWORD color,
366 int alpha_flag, 366 int alpha_flag,
367 void* pIccTransform); 367 void* pIccTransform);
368 368
369 #endif // CORE_FXGE_WIN32_WIN32_INT_H_ 369 #endif // CORE_FXGE_WIN32_WIN32_INT_H_
OLDNEW
« no previous file with comments | « core/fxge/skia/fx_skia_device.cpp ('k') | core/include/fxge/fx_ge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698