diff options
author | Greg Daniel <egdaniel@google.com> | 2017-11-08 19:58:51 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-08 19:58:58 +0000 |
commit | 065b41dd90782e22b5708c8b43696db641d54f46 (patch) | |
tree | 218278f670fb63274f6fbbcf68a6f99ad431029b /src/gpu/GrResourceAllocator.h | |
parent | 0078ab22519313be727ace05306333910768f58e (diff) |
Revert "Prepare to enable explicit gpu resource allocation"
This reverts commit f290376736b42a19b87da78c6ba2558313896860.
Reason for revert: Changed generated effect instead of FP
Original change's description:
> Prepare to enable explicit gpu resource allocation
>
> Change-Id: I407e45711c61831febbac3d3d3a88e3fdde92c5f
> Reviewed-on: https://skia-review.googlesource.com/68212
> Commit-Queue: Robert Phillips <robertphillips@google.com>
> Reviewed-by: Brian Salomon <bsalomon@google.com>
TBR=bsalomon@google.com,robertphillips@google.com
Change-Id: I949500d94c7461b7cf38d615117cfcdc9a791780
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/68900
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrResourceAllocator.h')
-rw-r--r-- | src/gpu/GrResourceAllocator.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/gpu/GrResourceAllocator.h b/src/gpu/GrResourceAllocator.h index d7aed0591e..3be4836ca9 100644 --- a/src/gpu/GrResourceAllocator.h +++ b/src/gpu/GrResourceAllocator.h @@ -54,6 +54,7 @@ public: } void assign(); + SkDEBUGCODE(void dump();) private: class Interval; @@ -71,7 +72,6 @@ private: } static uint32_t Hash(const GrScratchKey& key) { return key.hash(); } - static void OnFree(GrSurface* s) { s->unref(); } }; typedef SkTMultiMap<GrSurface, GrScratchKey, FreePoolTraits> FreePoolMultiMap; @@ -98,27 +98,12 @@ private: fNext = nullptr; } - const GrSurfaceProxy* proxy() const { return fProxy; } - GrSurfaceProxy* proxy() { return fProxy; } - unsigned int start() const { return fStart; } - unsigned int end() const { return fEnd; } - const Interval* next() const { return fNext; } - Interval* next() { return fNext; } - - void setNext(Interval* next) { fNext = next; } - - void extendEnd(unsigned int newEnd) { - SkASSERT(newEnd >= fEnd); - fEnd = newEnd; - } - // for SkTDynamicHash static const uint32_t& GetKey(const Interval& intvl) { return intvl.fProxyID; } static uint32_t Hash(const uint32_t& key) { return key; } - private: GrSurfaceProxy* fProxy; uint32_t fProxyID; // This is here b.c. DynamicHash requires a ref to the key unsigned int fStart; |