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

Side by Side Diff: include/core/SkImage.h

Issue 1352883004: Purge cached resources on SkImage destruction. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: codestyle Created 5 years, 3 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « gm/image_pict.cpp ('k') | src/core/SkBitmapProvider.cpp » ('j') | src/core/SkBitmapProvider.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698