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

Unified Diff: core/fpdfdoc/include/cpdf_defaultappearance.h

Issue 2197353002: Use PaintOperation instead of bFillOrStroke in CPVT_GenerateAP. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Use PaintOperation instead of bFillOrStroke in CPVT_GenerateAP. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fpdfdoc/doc_utils.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfdoc/include/cpdf_defaultappearance.h
diff --git a/core/fpdfdoc/include/cpdf_defaultappearance.h b/core/fpdfdoc/include/cpdf_defaultappearance.h
index c45d4eeffc3b314152994fa85f4b44958b39af86..c0fd3de709d32fa2acd9d50560f93709a74d9acb 100644
--- a/core/fpdfdoc/include/cpdf_defaultappearance.h
+++ b/core/fpdfdoc/include/cpdf_defaultappearance.h
@@ -14,6 +14,7 @@
#include "core/fxge/include/fx_dib.h"
enum class BorderStyle { SOLID, DASH, BEVELED, INSET, UNDERLINE };
+enum class PaintOperation { STROKE, FILL };
class CPDF_DefaultAppearance {
public:
@@ -30,14 +31,15 @@ class CPDF_DefaultAppearance {
CFX_ByteString GetFontString();
void GetFont(CFX_ByteString& csFontNameTag, FX_FLOAT& fFontSize);
- FX_BOOL HasColor(FX_BOOL bStrokingOperation = FALSE);
- CFX_ByteString GetColorString(FX_BOOL bStrokingOperation = FALSE);
+ FX_BOOL HasColor(PaintOperation nOperation = PaintOperation::FILL);
+ CFX_ByteString GetColorString(
+ PaintOperation nOperation = PaintOperation::FILL);
void GetColor(int& iColorType,
FX_FLOAT fc[4],
- FX_BOOL bStrokingOperation = FALSE);
+ PaintOperation nOperation = PaintOperation::FILL);
void GetColor(FX_ARGB& color,
int& iColorType,
- FX_BOOL bStrokingOperation = FALSE);
+ PaintOperation nOperation = PaintOperation::FILL);
FX_BOOL HasTextMatrix();
CFX_ByteString GetTextMatrixString();
« no previous file with comments | « core/fpdfdoc/doc_utils.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698