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

Side by Side Diff: third_party/agg23/agg_array.h

Issue 2382723003: Move core/fxcrt/include to core/fxcrt (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 | « third_party/DEPS ('k') | third_party/agg23/agg_basics.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 //---------------------------------------------------------------------------- 2 //----------------------------------------------------------------------------
3 // Anti-Grain Geometry - Version 2.3 3 // Anti-Grain Geometry - Version 2.3
4 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) 4 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
5 // 5 //
6 // Permission to copy, use, modify, sell and distribute this software 6 // Permission to copy, use, modify, sell and distribute this software
7 // is granted provided this copyright notice appears in all copies. 7 // is granted provided this copyright notice appears in all copies.
8 // This software is provided "as is" without express or implied 8 // This software is provided "as is" without express or implied
9 // warranty, and with no claim as to its suitability for any purpose. 9 // warranty, and with no claim as to its suitability for any purpose.
10 // 10 //
11 //---------------------------------------------------------------------------- 11 //----------------------------------------------------------------------------
12 // Contact: mcseem@antigrain.com 12 // Contact: mcseem@antigrain.com
13 // mcseemagg@yahoo.com 13 // mcseemagg@yahoo.com
14 // http://www.antigrain.com 14 // http://www.antigrain.com
15 //---------------------------------------------------------------------------- 15 //----------------------------------------------------------------------------
16 #ifndef AGG_ARRAY_INCLUDED 16 #ifndef AGG_ARRAY_INCLUDED
17 #define AGG_ARRAY_INCLUDED 17 #define AGG_ARRAY_INCLUDED
18 18
19 #include "agg_basics.h" 19 #include "agg_basics.h"
20 #include "core/fxcrt/include/fx_memory.h" // For FXSYS_* macros. 20 #include "core/fxcrt/fx_memory.h" // For FXSYS_* macros.
21 21
22 namespace agg 22 namespace agg
23 { 23 {
24 template <class T> 24 template <class T>
25 class pod_array { 25 class pod_array {
26 public: 26 public:
27 typedef T value_type; 27 typedef T value_type;
28 ~pod_array() 28 ~pod_array()
29 { 29 {
30 FX_Free(m_array); 30 FX_Free(m_array);
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 quick_sort_threshold = 9 500 quick_sort_threshold = 9
501 }; 501 };
502 template<class T> inline void swap_elements(T& a, T& b) 502 template<class T> inline void swap_elements(T& a, T& b)
503 { 503 {
504 T temp = a; 504 T temp = a;
505 a = b; 505 a = b;
506 b = temp; 506 b = temp;
507 } 507 }
508 } 508 }
509 #endif 509 #endif
OLDNEW
« no previous file with comments | « third_party/DEPS ('k') | third_party/agg23/agg_basics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698