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 "../../include/fxcrt/fx_basic.h" | 7 #include "core/include/fxcrt/fx_basic.h" |
| 8 |
8 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 9 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
9 #include <sys/types.h> | 10 #include <sys/types.h> |
10 #include <dirent.h> | 11 #include <dirent.h> |
11 #else | 12 #else |
12 #include <direct.h> | 13 #include <direct.h> |
13 #endif | 14 #endif |
| 15 |
14 CFX_PrivateData::~CFX_PrivateData() { | 16 CFX_PrivateData::~CFX_PrivateData() { |
15 ClearAll(); | 17 ClearAll(); |
16 } | 18 } |
17 void FX_PRIVATEDATA::FreeData() { | 19 void FX_PRIVATEDATA::FreeData() { |
18 if (m_pData == NULL) { | 20 if (m_pData == NULL) { |
19 return; | 21 return; |
20 } | 22 } |
21 if (m_bSelfDestruct) { | 23 if (m_bSelfDestruct) { |
22 delete (CFX_DestructObject*)m_pData; | 24 delete (CFX_DestructObject*)m_pData; |
23 } else if (m_pCallback) { | 25 } else if (m_pCallback) { |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 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, |
365 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, |
366 g * m.c + h * m.f + i * m.i); | 368 g * m.c + h * m.f + i * m.i); |
367 } | 369 } |
368 | 370 |
369 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) { |
370 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, |
371 d * v.a + e * v.b + f * v.c, | 373 d * v.a + e * v.b + f * v.c, |
372 g * v.a + h * v.b + i * v.c); | 374 g * v.a + h * v.b + i * v.c); |
373 } | 375 } |
OLD | NEW |