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

Unified Diff: include/gpu/GrGpuObject.h

Issue 413523002: Remove unused enum value and member of GrGpuObject (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | src/gpu/GrGpuObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrGpuObject.h
diff --git a/include/gpu/GrGpuObject.h b/include/gpu/GrGpuObject.h
index 859b8b015e555cc7e0979e67a1a269bcabf897eb..0347d441005d88af1ad46a9adf4b08c8f427a5ac 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;
« no previous file with comments | « no previous file | src/gpu/GrGpuObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698