| OLD | NEW | 
|---|
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 
| 6 | 6 | 
| 7 #include "core/fpdfapi/fpdf_page/cpdf_meshstream.h" | 7 #include "core/fpdfapi/fpdf_page/cpdf_meshstream.h" | 
| 8 | 8 | 
| 9 #include "core/fpdfapi/fpdf_page/include/cpdf_colorspace.h" | 9 #include "core/fpdfapi/fpdf_page/cpdf_colorspace.h" | 
| 10 #include "core/fpdfapi/fpdf_page/pageint.h" | 10 #include "core/fpdfapi/fpdf_page/pageint.h" | 
| 11 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 11 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 
| 12 | 12 | 
| 13 namespace { | 13 namespace { | 
| 14 | 14 | 
| 15 // See PDF Reference 1.7, page 315, table 4.32. (Also table 4.33 and 4.34) | 15 // See PDF Reference 1.7, page 315, table 4.32. (Also table 4.33 and 4.34) | 
| 16 bool ShouldCheckBPC(ShadingType type) { | 16 bool ShouldCheckBPC(ShadingType type) { | 
| 17   switch (type) { | 17   switch (type) { | 
| 18     case kFreeFormGouraudTriangleMeshShading: | 18     case kFreeFormGouraudTriangleMeshShading: | 
| 19     case kLatticeFormGouraudTriangleMeshShading: | 19     case kLatticeFormGouraudTriangleMeshShading: | 
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 208     if (m_BitStream.IsEOF()) | 208     if (m_BitStream.IsEOF()) | 
| 209       return FALSE; | 209       return FALSE; | 
| 210 | 210 | 
| 211     GetCoords(vertex[i].x, vertex[i].y); | 211     GetCoords(vertex[i].x, vertex[i].y); | 
| 212     pObject2Bitmap->Transform(vertex[i].x, vertex[i].y); | 212     pObject2Bitmap->Transform(vertex[i].x, vertex[i].y); | 
| 213     GetColor(vertex[i].r, vertex[i].g, vertex[i].b); | 213     GetColor(vertex[i].r, vertex[i].g, vertex[i].b); | 
| 214     m_BitStream.ByteAlign(); | 214     m_BitStream.ByteAlign(); | 
| 215   } | 215   } | 
| 216   return TRUE; | 216   return TRUE; | 
| 217 } | 217 } | 
| OLD | NEW | 
|---|