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

Unified Diff: core/fpdfapi/fpdf_page/cpdf_meshstream.h

Issue 2027053002: Relax checks added in commit 8f3a311. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@bug_616248
Patch Set: s/kMaxResults/kMaxComps/ Created 4 years, 7 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 | « no previous file | core/fpdfapi/fpdf_page/cpdf_meshstream.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_page/cpdf_meshstream.h
diff --git a/core/fpdfapi/fpdf_page/cpdf_meshstream.h b/core/fpdfapi/fpdf_page/cpdf_meshstream.h
index 8f47265acd5a66abf542d91cc70eb5e5c9e4cf13..5fb697e53bb39f734438736ebdf9ab17904bf35a 100644
--- a/core/fpdfapi/fpdf_page/cpdf_meshstream.h
+++ b/core/fpdfapi/fpdf_page/cpdf_meshstream.h
@@ -51,7 +51,7 @@ class CPDF_MeshStream {
uint32_t comps() const { return m_nComps; }
private:
- static const uint32_t kMaxResults = 8;
+ static const uint32_t kMaxComps = 8;
Tom Sepez 2016/06/01 19:28:19 nit: kMaxComponents
Lei Zhang 2016/06/01 19:42:33 Done. I changed all the other uses for consistency
const ShadingType m_type;
const std::vector<std::unique_ptr<CPDF_Function>>& m_funcs;
@@ -67,8 +67,8 @@ class CPDF_MeshStream {
FX_FLOAT m_xmax;
FX_FLOAT m_ymin;
FX_FLOAT m_ymax;
- FX_FLOAT m_ColorMin[kMaxResults];
- FX_FLOAT m_ColorMax[kMaxResults];
+ FX_FLOAT m_ColorMin[kMaxComps];
+ FX_FLOAT m_ColorMax[kMaxComps];
CPDF_StreamAcc m_Stream;
CFX_BitStream m_BitStream;
};
« no previous file with comments | « no previous file | core/fpdfapi/fpdf_page/cpdf_meshstream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698