From c533f4b7390afc3b372c0184d274053039ac264d Mon Sep 17 00:00:00 2001 From: Jane Liu Date: Mon, 19 Jun 2017 11:13:00 -0400 Subject: Added EmbedderTest::RenderPageWithFlags() Currently, in embedder tests, pages can only be rendered with no flags specified. With the addition of annotation APIs and corresponding embedder tests, it is helpful to add a test method to allow flags to be passed in when rendering pages in embedder tests. This CL adds such a method. Bug=pdfium:737 Change-Id: I277831cb2e228154e9a65b078a241b8e61220664 Reviewed-on: https://pdfium-review.googlesource.com/6711 Reviewed-by: dsinclair Commit-Queue: Jane Liu --- testing/embedder_test.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'testing/embedder_test.h') diff --git a/testing/embedder_test.h b/testing/embedder_test.h index 2bb796d905..fd48840d28 100644 --- a/testing/embedder_test.h +++ b/testing/embedder_test.h @@ -101,6 +101,10 @@ class EmbedderTest : public ::testing::Test, // Convert a loaded page into a bitmap. virtual FPDF_BITMAP RenderPage(FPDF_PAGE page); + // Convert a loaded page into a bitmap with page rendering flags specified. + // See public/fpdfview.h for a list of page rendering flags. + virtual FPDF_BITMAP RenderPageWithFlags(FPDF_PAGE page, int flags); + // Relese the resources obtained from LoadPage(). Further use of |page| // is prohibited after this call is made. virtual void UnloadPage(FPDF_PAGE page); -- cgit v1.2.3