| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 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 SkImage_Base_DEFINED | 8 #ifndef SkImage_Base_DEFINED |
| 9 #define SkImage_Base_DEFINED | 9 #define SkImage_Base_DEFINED |
| 10 | 10 |
| 11 #include "../private/SkAtomics.h" | 11 #include "SkAtomics.h" |
| 12 #include "SkImage.h" | 12 #include "SkImage.h" |
| 13 #include "SkSurface.h" | 13 #include "SkSurface.h" |
| 14 | 14 |
| 15 #include <new> | 15 #include <new> |
| 16 | 16 |
| 17 enum { | 17 enum { |
| 18 kNeedNewImageUniqueID = 0 | 18 kNeedNewImageUniqueID = 0 |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 class SkImage_Base : public SkImage { | 21 class SkImage_Base : public SkImage { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 static inline SkImage_Base* as_IB(SkImage* image) { | 83 static inline SkImage_Base* as_IB(SkImage* image) { |
| 84 return static_cast<SkImage_Base*>(image); | 84 return static_cast<SkImage_Base*>(image); |
| 85 } | 85 } |
| 86 | 86 |
| 87 static inline const SkImage_Base* as_IB(const SkImage* image) { | 87 static inline const SkImage_Base* as_IB(const SkImage* image) { |
| 88 return static_cast<const SkImage_Base*>(image); | 88 return static_cast<const SkImage_Base*>(image); |
| 89 } | 89 } |
| 90 | 90 |
| 91 #endif | 91 #endif |
| OLD | NEW |