diff options
author | Mike Reed <reed@google.com> | 2017-04-11 15:56:23 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-04-11 20:32:09 +0000 |
commit | 921ebe5b736b068182ce5de1ab0e36add06d5e2c (patch) | |
tree | e469717ab2b6dbeb0d6c5b220c1312d89b41f3fd /include | |
parent | da96550d3941cb794a799c73506a1c5b695c70a1 (diff) |
clean ups in SkPixelRef
- isLazyGenerated no longer needed
- requestLock does not need a virtual
Bug: skia:4328
Change-Id: I56ab5ee1e10f2a20332eb58464a2a48b487101e6
Reviewed-on: https://skia-review.googlesource.com/13195
Reviewed-by: Matt Sarett <msarett@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPixelRef.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h index ac2e45e5fd..5987ee59fb 100644 --- a/include/core/SkPixelRef.h +++ b/include/core/SkPixelRef.h @@ -208,11 +208,6 @@ public: virtual SkDiscardableMemory* diagnostic_only_getDiscardable() const { return NULL; } - /** - * Returns true if the pixels are generated on-the-fly (when required). - */ - bool isLazyGenerated() const { return this->onIsLazyGenerated(); } - protected: /** * On success, returns true and fills out the LockRec for the pixels. On @@ -246,10 +241,6 @@ protected: */ virtual size_t getAllocatedSizeInBytes() const; - virtual bool onRequestLock(const LockRequest&, LockResult*); - - virtual bool onIsLazyGenerated() const { return false; } - /** Return the mutex associated with this pixelref. This value is assigned in the constructor, and cannot change during the lifetime of the object. */ @@ -271,6 +262,7 @@ private: int fLockCount; bool lockPixelsInsideMutex(); + bool internalRequestLock(const LockRequest&, LockResult*); // Bottom bit indicates the Gen ID is unique. bool genIDIsUnique() const { return SkToBool(fTaggedGenID.load() & 1); } |