diff options
author | bsalomon <bsalomon@google.com> | 2014-07-22 11:17:14 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-07-22 11:17:14 -0700 |
commit | be035702f385615c6a418585f2eada279ed41246 (patch) | |
tree | e57f0d9a344e9ae13dd553e4b11b7ebfc3d0632b /include/gpu | |
parent | 7419e95f39d9f8d9032748fac912aa0723870ca0 (diff) |
Remove unused enum value and member of GrGpuObject
R=robertphillips@google.com
TBR=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/413523002
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrGpuObject.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/gpu/GrGpuObject.h b/include/gpu/GrGpuObject.h index 859b8b015e..0347d44100 100644 --- a/include/gpu/GrGpuObject.h +++ b/include/gpu/GrGpuObject.h @@ -73,7 +73,6 @@ protected: virtual void onAbandon() {}; bool isWrapped() const { return kWrapped_FlagBit & fFlags; } - bool needsDeferredUnref() const { return SkToBool(kDeferredUnref_FlagBit & fFlags); } private: #ifdef SK_DEBUG @@ -86,8 +85,6 @@ private: GrGpu* fGpu; // not reffed. The GrGpu can be deleted while there // are still live GrGpuObjects. It will call // release() on all such objects in its destructor. - mutable int fDeferredRefCount; // How many references in deferred drawing buffers. - enum Flags { /** * This object wraps a GPU object given to us by the user. @@ -95,14 +92,6 @@ private: * free it). */ kWrapped_FlagBit = 0x1, - - /** - * This texture should be de-refed when the deferred ref count goes - * to zero. An object gets into this state when the resource cache - * is holding a ref-of-obligation (i.e., someone needs to own it but - * no one else wants to) but doesn't really want to keep it around. - */ - kDeferredUnref_FlagBit = 0x2, }; uint32_t fFlags; |