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_DEFINED | 8 #ifndef SkImage_DEFINED |
9 #define SkImage_DEFINED | 9 #define SkImage_DEFINED |
10 | 10 |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 bool asLegacyBitmap(SkBitmap*, LegacyBitmapMode) const; | 321 bool asLegacyBitmap(SkBitmap*, LegacyBitmapMode) const; |
322 | 322 |
323 /** | 323 /** |
324 * Returns true if the image is backed by an image-generator or other src t
hat creates | 324 * Returns true if the image is backed by an image-generator or other src t
hat creates |
325 * (and caches) its pixels / texture on-demand. | 325 * (and caches) its pixels / texture on-demand. |
326 */ | 326 */ |
327 bool isLazyGenerated() const; | 327 bool isLazyGenerated() const; |
328 | 328 |
329 protected: | 329 protected: |
330 SkImage(int width, int height, uint32_t uniqueID); | 330 SkImage(int width, int height, uint32_t uniqueID); |
| 331 virtual ~SkImage(); |
331 | 332 |
332 private: | 333 private: |
333 const int fWidth; | 334 const int fWidth; |
334 const int fHeight; | 335 const int fHeight; |
335 const uint32_t fUniqueID; | 336 const uint32_t fUniqueID; |
336 | 337 |
337 typedef SkRefCnt INHERITED; | 338 typedef SkRefCnt INHERITED; |
338 }; | 339 }; |
339 | 340 |
340 #endif | 341 #endif |
OLD | NEW |