diff options
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrGpuResource.h | 2 | ||||
-rw-r--r-- | include/gpu/GrProcessor.h | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h index 29d33df4bd..32376e524b 100644 --- a/include/gpu/GrGpuResource.h +++ b/include/gpu/GrGpuResource.h @@ -75,6 +75,8 @@ public: #endif } + void testingOnly_getCounts(int* refCnt, int* readCnt, int* writeCnt) const; + protected: GrIORef() : fRefCnt(1), fPendingReads(0), fPendingWrites(0) { } diff --git a/include/gpu/GrProcessor.h b/include/gpu/GrProcessor.h index f0f895f3c2..32995c308b 100644 --- a/include/gpu/GrProcessor.h +++ b/include/gpu/GrProcessor.h @@ -252,6 +252,11 @@ private: */ class GrProcessor::BufferAccess : public SkNoncopyable { public: + BufferAccess() = default; + BufferAccess(GrPixelConfig texelConfig, GrBuffer* buffer, + GrShaderFlags visibility = kFragment_GrShaderFlag) { + this->reset(texelConfig, buffer, visibility); + } /** * Must be initialized before adding to a GrProcessor's buffer access list. */ |