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

Side by Side Diff: core/fpdfapi/page/cpdf_meshstream.cpp

Issue 2392603004: Move core/fpdfapi/fpdf_parser to core/fpdfapi/parser (Closed)
Patch Set: Rebase to master Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « core/fpdfapi/page/cpdf_meshstream.h ('k') | core/fpdfapi/page/cpdf_page.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/page/cpdf_meshstream.h" 7 #include "core/fpdfapi/page/cpdf_meshstream.h"
8 8
9 #include "core/fpdfapi/fpdf_parser/cpdf_array.h"
10 #include "core/fpdfapi/page/cpdf_colorspace.h" 9 #include "core/fpdfapi/page/cpdf_colorspace.h"
11 #include "core/fpdfapi/page/pageint.h" 10 #include "core/fpdfapi/page/pageint.h"
11 #include "core/fpdfapi/parser/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:
20 case kCoonsPatchMeshShading: 20 case kCoonsPatchMeshShading:
21 case kTensorProductPatchMeshShading: 21 case kTensorProductPatchMeshShading:
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « core/fpdfapi/page/cpdf_meshstream.h ('k') | core/fpdfapi/page/cpdf_page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698