Lines Matching defs:bytes
72 // Default maximum number of bytes of gpu memory of budgeted resources in the cache.
99 void setLimit(size_t bytes);
114 * Returns the number of bytes consumed by resources.
119 void addAllocImageBytes(size_t bytes) { fAllocImageBytes += bytes; }
120 void removeAllocImageBytes(size_t bytes) { fAllocImageBytes -= bytes; }
121 void addAllocBufferBytes(size_t bytes) { fAllocBufferBytes += bytes; }
122 void removeAllocBufferBytes(size_t bytes) { fAllocBufferBytes -= bytes; }
126 * Returns the number of bytes held by unlocked resources which are available for purging.
131 * Returns the number of bytes consumed by budgeted resources.
136 * Returns the number of bytes consumed by cached resources.
236 * @param maxBytesToPurge the desired number of bytes to be purged.
318 void changeByteOfPid(int32_t beforePid, int32_t afterPid, size_t bytes);
379 bool wouldFit(size_t bytes) const { return fBudgetedBytes+bytes <= fMaxBytes; }
653 void changeByteOfPid(int32_t beforePid, int32_t afterPid, size_t bytes)
655 fCache->changeByteOfPid(beforePid, afterPid, bytes);