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

Unified Diff: core/fpdfapi/render/render_int.h

Issue 2551593002: Rename fpdf_render_image and fpdf_render_text (Closed)
Patch Set: Remove commented Created 4 years 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/fpdfapi/render/fpdf_render_text.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/render/render_int.h
diff --git a/core/fpdfapi/render/render_int.h b/core/fpdfapi/render/render_int.h
index ca827368bc34a6eefc6b810f8974d90d4e50b70a..5d04fa77bb6ebb2c6c97b128f978470e71b299ca 100644
--- a/core/fpdfapi/render/render_int.h
+++ b/core/fpdfapi/render/render_int.h
@@ -56,6 +56,8 @@ typedef struct {
int m_ColorKeyMax;
} DIB_COMP_DATA;
+#define FPDF_HUGE_IMAGE_SIZE 60000000
+
class CPDF_DIBSource : public CFX_DIBSource {
public:
CPDF_DIBSource();
@@ -173,25 +175,13 @@ class CPDF_DIBSource : public CFX_DIBSource {
int m_Status;
};
-#define FPDF_HUGE_IMAGE_SIZE 60000000
-class CPDF_DIBTransferFunc : public CFX_FilteredDIB {
- public:
- explicit CPDF_DIBTransferFunc(const CPDF_TransferFunc* pTransferFunc);
- ~CPDF_DIBTransferFunc() override;
-
- // CFX_FilteredDIB
- FXDIB_Format GetDestFormat() override;
- FX_ARGB* GetDestPalette() override;
- void TranslateScanline(const uint8_t* src_buf,
- std::vector<uint8_t>* dest_buf) const override;
- void TranslateDownSamples(uint8_t* dest_buf,
- const uint8_t* src_buf,
- int pixels,
- int Bpp) const override;
-
- const uint8_t* m_RampR;
- const uint8_t* m_RampG;
- const uint8_t* m_RampB;
-};
+CCodec_ScanlineDecoder* FPDFAPI_CreateFlateDecoder(
+ const uint8_t* src_buf,
+ uint32_t src_size,
+ int width,
+ int height,
+ int nComps,
+ int bpc,
+ const CPDF_Dictionary* pParams);
#endif // CORE_FPDFAPI_RENDER_RENDER_INT_H_
« no previous file with comments | « core/fpdfapi/render/fpdf_render_text.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698