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

Unified Diff: include/gpu/GrFragmentProcessor.h

Issue 1870893002: Implement texel buffers (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_texelfetch
Patch Set: GrBuffer(Access) into include/gpu Created 4 years, 8 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 | « include/gpu/GrBufferAccess.h ('k') | include/gpu/GrProcessor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrFragmentProcessor.h
diff --git a/include/gpu/GrFragmentProcessor.h b/include/gpu/GrFragmentProcessor.h
index 55b2f905d9c52e8ebf6adb08b43f2dd81b77eef4..c3f291cc5f53e510a1f43de582f0018745aaf7ee 100644
--- a/include/gpu/GrFragmentProcessor.h
+++ b/include/gpu/GrFragmentProcessor.h
@@ -59,6 +59,7 @@ public:
: INHERITED()
, fUsesLocalCoords(false)
, fNumTexturesExclChildren(0)
+ , fNumBuffersExclChildren(0)
, fNumTransformsExclChildren(0) {}
~GrFragmentProcessor() override;
@@ -74,6 +75,8 @@ public:
int numTexturesExclChildren() const { return fNumTexturesExclChildren; }
+ int numBuffersExclChildren() const { return fNumBuffersExclChildren; }
+
int numTransformsExclChildren() const { return fNumTransformsExclChildren; }
int numTransforms() const { return fCoordTransforms.count(); }
@@ -122,6 +125,7 @@ public:
protected:
void addTextureAccess(const GrTextureAccess* textureAccess) override;
+ void addBufferAccess(const GrBufferAccess*) override;
/**
* Fragment Processor subclasses call this from their constructor to register coordinate
@@ -210,6 +214,7 @@ private:
*/
SkSTArray<4, const GrCoordTransform*, true> fCoordTransforms;
int fNumTexturesExclChildren;
+ int fNumBuffersExclChildren;
int fNumTransformsExclChildren;
SkSTArray<1, const GrFragmentProcessor*, true> fChildProcessors;
« no previous file with comments | « include/gpu/GrBufferAccess.h ('k') | include/gpu/GrProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698