| Index: testing/embedder_test.cpp
|
| diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp
|
| index 33c72201a1fb70938c6669bf691d95782e00c4fb..d4ce7eba5a511f2c1c0b499c1ebe1f97aef98343 100644
|
| --- a/testing/embedder_test.cpp
|
| +++ b/testing/embedder_test.cpp
|
| @@ -12,7 +12,6 @@
|
| #include <vector>
|
|
|
| #include "public/fpdf_dataavail.h"
|
| -#include "public/fpdf_edit.h"
|
| #include "public/fpdf_text.h"
|
| #include "public/fpdfview.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| @@ -214,10 +213,8 @@ FPDF_PAGE EmbedderTest::LoadAndCachePage(int page_number) {
|
| FPDF_BITMAP EmbedderTest::RenderPage(FPDF_PAGE page) {
|
| int width = static_cast<int>(FPDF_GetPageWidth(page));
|
| int height = static_cast<int>(FPDF_GetPageHeight(page));
|
| - int alpha = FPDFPage_HasTransparency(page) ? 1 : 0;
|
| - FPDF_BITMAP bitmap = FPDFBitmap_Create(width, height, alpha);
|
| - FPDF_DWORD fill_color = alpha ? 0x00000000 : 0xFFFFFFFF;
|
| - FPDFBitmap_FillRect(bitmap, 0, 0, width, height, fill_color);
|
| + FPDF_BITMAP bitmap = FPDFBitmap_Create(width, height, 0);
|
| + FPDFBitmap_FillRect(bitmap, 0, 0, width, height, 0xFFFFFFFF);
|
| FPDF_RenderPageBitmap(bitmap, page, 0, 0, width, height, 0, 0);
|
| FPDF_FFLDraw(form_handle_, bitmap, page, 0, 0, width, height, 0, 0);
|
| return bitmap;
|
|
|