aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrProcessor.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu/GrProcessor.h')
-rw-r--r--include/gpu/GrProcessor.h5
1 files changed, 5 insertions, 0 deletions
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.
*/