OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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/include/fxcrt/fx_basic.h" | 7 #include "core/include/fxcrt/fx_basic.h" |
8 #include "core/include/fxcrt/fx_ext.h" | 8 #include "core/include/fxcrt/fx_ext.h" |
9 | 9 |
10 #include <cctype> | 10 #include <cctype> |
11 | 11 |
12 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 12 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
| 13 #include <dirent.h> |
13 #include <sys/types.h> | 14 #include <sys/types.h> |
14 #include <dirent.h> | |
15 #else | 15 #else |
16 #include <direct.h> | 16 #include <direct.h> |
17 #endif | 17 #endif |
18 | 18 |
19 CFX_PrivateData::~CFX_PrivateData() { | 19 CFX_PrivateData::~CFX_PrivateData() { |
20 ClearAll(); | 20 ClearAll(); |
21 } | 21 } |
22 void FX_PRIVATEDATA::FreeData() { | 22 void FX_PRIVATEDATA::FreeData() { |
23 if (!m_pData) { | 23 if (!m_pData) { |
24 return; | 24 return; |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 d * m.b + e * m.e + f * m.h, d * m.c + e * m.f + f * m.i, | 366 d * m.b + e * m.e + f * m.h, d * m.c + e * m.f + f * m.i, |
367 g * m.a + h * m.d + i * m.g, g * m.b + h * m.e + i * m.h, | 367 g * m.a + h * m.d + i * m.g, g * m.b + h * m.e + i * m.h, |
368 g * m.c + h * m.f + i * m.i); | 368 g * m.c + h * m.f + i * m.i); |
369 } | 369 } |
370 | 370 |
371 CFX_Vector_3by1 CFX_Matrix_3by3::TransformVector(const CFX_Vector_3by1& v) { | 371 CFX_Vector_3by1 CFX_Matrix_3by3::TransformVector(const CFX_Vector_3by1& v) { |
372 return CFX_Vector_3by1(a * v.a + b * v.b + c * v.c, | 372 return CFX_Vector_3by1(a * v.a + b * v.b + c * v.c, |
373 d * v.a + e * v.b + f * v.c, | 373 d * v.a + e * v.b + f * v.c, |
374 g * v.a + h * v.b + i * v.c); | 374 g * v.a + h * v.b + i * v.c); |
375 } | 375 } |
OLD | NEW |