| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkTypes_DEFINED | 8 #ifndef SkTypes_DEFINED |
| 9 #define SkTypes_DEFINED | 9 #define SkTypes_DEFINED |
| 10 | 10 |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 Dst dst; | 441 Dst dst; |
| 442 } data; | 442 } data; |
| 443 data.src = ptr; | 443 data.src = ptr; |
| 444 return data.dst; | 444 return data.dst; |
| 445 } | 445 } |
| 446 | 446 |
| 447 ////////////////////////////////////////////////////////////////////////////// | 447 ////////////////////////////////////////////////////////////////////////////// |
| 448 | 448 |
| 449 /** \class SkNoncopyable | 449 /** \class SkNoncopyable |
| 450 | 450 |
| 451 SkNoncopyable is the base class for objects that may do not want to | 451 SkNoncopyable is the base class for objects that do not want to |
| 452 be copied. It hides its copy-constructor and its assignment-operator. | 452 be copied. It hides its copy-constructor and its assignment-operator. |
| 453 */ | 453 */ |
| 454 class SK_API SkNoncopyable { | 454 class SK_API SkNoncopyable { |
| 455 public: | 455 public: |
| 456 SkNoncopyable() {} | 456 SkNoncopyable() {} |
| 457 | 457 |
| 458 private: | 458 private: |
| 459 SkNoncopyable(const SkNoncopyable&); | 459 SkNoncopyable(const SkNoncopyable&); |
| 460 SkNoncopyable& operator=(const SkNoncopyable&); | 460 SkNoncopyable& operator=(const SkNoncopyable&); |
| 461 }; | 461 }; |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 private: | 672 private: |
| 673 void* fPtr; | 673 void* fPtr; |
| 674 size_t fSize; // can be larger than the requested size (see kReuse) | 674 size_t fSize; // can be larger than the requested size (see kReuse) |
| 675 uint32_t fStorage[(kSize + 3) >> 2]; | 675 uint32_t fStorage[(kSize + 3) >> 2]; |
| 676 }; | 676 }; |
| 677 // Can't guard the constructor because it's a template class. | 677 // Can't guard the constructor because it's a template class. |
| 678 | 678 |
| 679 #endif /* C++ */ | 679 #endif /* C++ */ |
| 680 | 680 |
| 681 #endif | 681 #endif |
| OLD | NEW |