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 #ifndef XFA_SRC_FXGRAPHICS_PRE_H_ | 7 #ifndef XFA_FXGRAPHICS_PRE_H_ |
8 #define XFA_SRC_FXGRAPHICS_PRE_H_ | 8 #define XFA_FXGRAPHICS_PRE_H_ |
9 | 9 |
10 enum { | 10 enum { |
11 FX_CONTEXT_None = 0, | 11 FX_CONTEXT_None = 0, |
12 FX_CONTEXT_Device, | 12 FX_CONTEXT_Device, |
13 }; | 13 }; |
14 enum { FX_COLOR_None = 0, FX_COLOR_Solid, FX_COLOR_Pattern, FX_COLOR_Shading }; | 14 enum { FX_COLOR_None = 0, FX_COLOR_Solid, FX_COLOR_Pattern, FX_COLOR_Shading }; |
15 enum { FX_PATTERN_None = 0, FX_PATTERN_Bitmap, FX_PATTERN_Hatch }; | 15 enum { FX_PATTERN_None = 0, FX_PATTERN_Bitmap, FX_PATTERN_Hatch }; |
16 enum { FX_SHADING_None = 0, FX_SHADING_Axial, FX_SHADING_Radial }; | 16 enum { FX_SHADING_None = 0, FX_SHADING_Axial, FX_SHADING_Radial }; |
17 | 17 |
18 #define FX_HATCHSTYLE_Total 53 | 18 #define FX_HATCHSTYLE_Total 53 |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 #define FX_START_TIMER \ | 576 #define FX_START_TIMER \ |
577 NSTimeInterval start, stop; \ | 577 NSTimeInterval start, stop; \ |
578 start = [NSDate timeIntervalSinceReferenceDate]; | 578 start = [NSDate timeIntervalSinceReferenceDate]; |
579 #define FX_STOP_TIMER \ | 579 #define FX_STOP_TIMER \ |
580 stop = [NSDate timeIntervalSinceReferenceDate]; \ | 580 stop = [NSDate timeIntervalSinceReferenceDate]; \ |
581 NSTimeInterval duration = stop - start; \ | 581 NSTimeInterval duration = stop - start; \ |
582 printf("duration is %f millisecond\n", duration * 1000); | 582 printf("duration is %f millisecond\n", duration * 1000); |
583 #else | 583 #else |
584 #endif | 584 #endif |
585 | 585 |
586 #endif // XFA_SRC_FXGRAPHICS_PRE_H_ | 586 #endif // XFA_FXGRAPHICS_PRE_H_ |
OLD | NEW |