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

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

Issue 1870463002: flesh out gradient shaders (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: fix linux-detected error 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
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_H_ 7 #ifndef CORE_FXGE_INCLUDE_FX_GE_H_
8 #define CORE_FXGE_INCLUDE_FX_GE_H_ 8 #define CORE_FXGE_INCLUDE_FX_GE_H_
9 9
10 #include "core/fxge/include/fx_dib.h" 10 #include "core/fxge/include/fx_dib.h"
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 uint32_t color, 596 uint32_t color,
597 int alpha_flag = 0, 597 int alpha_flag = 0,
598 void* pIccTransform = NULL) { 598 void* pIccTransform = NULL) {
599 return FALSE; 599 return FALSE;
600 } 600 }
601 601
602 virtual void* GetPlatformSurface() const { return NULL; } 602 virtual void* GetPlatformSurface() const { return NULL; }
603 virtual int GetDriverType() const { return 0; } 603 virtual int GetDriverType() const { return 0; }
604 virtual void ClearDriver() {} 604 virtual void ClearDriver() {}
605 605
606 virtual FX_BOOL DrawShading(CPDF_ShadingPattern* pPattern, 606 virtual FX_BOOL DrawShading(const CPDF_ShadingPattern* pPattern,
607 CFX_Matrix* pMatrix, 607 const CFX_Matrix* pMatrix,
608 const FX_RECT& clip_rect,
608 int alpha, 609 int alpha,
609 FX_BOOL bAlphaMode) { 610 FX_BOOL bAlphaMode) {
610 return false; 611 return false;
611 } 612 }
612 }; 613 };
613 614
614 class IFX_PSOutput { 615 class IFX_PSOutput {
615 public: 616 public:
616 virtual void Release() = 0; 617 virtual void Release() = 0;
617 virtual void OutputPS(const FX_CHAR* str, int len) = 0; 618 virtual void OutputPS(const FX_CHAR* str, int len) = 0;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 void FindPSFontGlyph(CFX_FaceCache* pFaceCache, 725 void FindPSFontGlyph(CFX_FaceCache* pFaceCache,
725 CFX_Font* pFont, 726 CFX_Font* pFont,
726 const FXTEXT_CHARPOS& charpos, 727 const FXTEXT_CHARPOS& charpos,
727 int& ps_fontnum, 728 int& ps_fontnum,
728 int& ps_glyphindex); 729 int& ps_glyphindex);
729 730
730 void WritePSBinary(const uint8_t* data, int len); 731 void WritePSBinary(const uint8_t* data, int len);
731 }; 732 };
732 733
733 #endif // CORE_FXGE_INCLUDE_FX_GE_H_ 734 #endif // CORE_FXGE_INCLUDE_FX_GE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698