summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_dibsource.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-03-05 15:23:27 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-05 15:23:27 +0000
commitfa1a0f6e4ddb2b30726a6d7403c39ee57295d920 (patch)
tree12e74975b487890dff8c9040f93c2a46f74ab3c3 /core/fpdfapi/render/cpdf_dibsource.h
parent1330ebbff8a31beb19d38b2a680625a19240a4f0 (diff)
downloadpdfium-fa1a0f6e4ddb2b30726a6d7403c39ee57295d920.tar.xz
Clean up CPDF_DIBSource.
- Deduplicate code. - Rearrange some functions for early returns. Change-Id: I901d9041a42ff66002b1454193e5e122e5a379cd Reviewed-on: https://pdfium-review.googlesource.com/27810 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_dibsource.h')
-rw-r--r--core/fpdfapi/render/cpdf_dibsource.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/render/cpdf_dibsource.h b/core/fpdfapi/render/cpdf_dibsource.h
index a29385f6ad..e66a45e303 100644
--- a/core/fpdfapi/render/cpdf_dibsource.h
+++ b/core/fpdfapi/render/cpdf_dibsource.h
@@ -30,12 +30,12 @@ class CPDF_Dictionary;
class CPDF_Document;
class CPDF_Stream;
-typedef struct {
+struct DIB_COMP_DATA {
float m_DecodeMin;
float m_DecodeStep;
int m_ColorKeyMin;
int m_ColorKeyMax;
-} DIB_COMP_DATA;
+};
#define FPDF_HUGE_IMAGE_SIZE 60000000