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

Unified Diff: src/core/SkSpecialImage.h

Issue 1709263002: Update SkImageFilter's cache to handle SkSpecialImages and add unit test (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix comment Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: src/core/SkSpecialImage.h
diff --git a/src/core/SkSpecialImage.h b/src/core/SkSpecialImage.h
index 8dd4a92e1cc37a5adfd232f8d18cb26fd643cc63..79fceeba6fc5c0ff52ae16d5dfa26039ee4ec9f7 100644
--- a/src/core/SkSpecialImage.h
+++ b/src/core/SkSpecialImage.h
@@ -41,6 +41,8 @@ class SkSpecialImage : public SkRefCnt {
public:
int width() const { return fSubset.width(); }
int height() const { return fSubset.height(); }
+ const SkIRect& subset() const { return fSubset; }
+
uint32_t uniqueID() const { return fUniqueID; }
virtual bool isOpaque() const { return false; }
virtual size_t getSize() const = 0;
@@ -78,10 +80,9 @@ protected:
, fProxy(proxy) {
}
- // The following 3 are for testing and shouldn't be used. (see skbug.com/4965)
+ // The following 2 are for testing and shouldn't be used.
friend class TestingSpecialImageAccess;
friend class TestingSpecialSurfaceAccess;
- const SkIRect& subset() const { return fSubset; }
/**
* If the SpecialImage is backed by cpu pixels, return the const address

Powered by Google App Engine
This is Rietveld 408576698