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

Unified Diff: pdf/pdfium/pdfium_engine.cc

Issue 2328893002: Add FPDF_ANNOT in PDFiumEngine::GetRenderingFlags. (Closed)
Patch Set: Created 4 years, 3 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 | « pdf/pdfium/pdfium_engine.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/pdfium_engine.cc
diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc
index 281b1d5f45807dc4f1af13e784e6f8e59d6aadf4..f3ae32c109488f52f10438a9ddf030c339d2c431 100644
--- a/pdf/pdfium/pdfium_engine.cc
+++ b/pdf/pdfium/pdfium_engine.cc
@@ -551,6 +551,7 @@ PDFiumEngine::PDFiumEngine(PDFEngine::Client* client)
most_visible_page_(-1),
called_do_document_action_(false),
render_grayscale_(false),
+ render_annots_(true),
progressive_paint_timeout_(0),
getting_password_(false) {
find_factory_.Initialize(this);
@@ -2986,6 +2987,8 @@ int PDFiumEngine::GetRenderingFlags() const {
flags |= FPDF_GRAYSCALE;
if (client_->IsPrintPreview())
flags |= FPDF_PRINTING;
+ if (render_annots_)
+ flags |= FPDF_ANNOT;
return flags;
}
« no previous file with comments | « pdf/pdfium/pdfium_engine.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698