diff options
author | 2017-04-04 10:15:51 -0400 | |
---|---|---|
committer | 2017-04-04 15:27:44 +0000 | |
commit | ab015efc48c462ffdffebb45c02cd19efb254983 (patch) | |
tree | 0b120fe0e4238f89f7e4bb73a88a00301ecf1378 /include/gpu/GrFragmentProcessor.h | |
parent | 19aff5dd5cd83141f12c234c4255a35f63e564cd (diff) |
Move the ability to access textures, buffers, and image storages out from GrProcessor.
GrXferProcessor can no longer use this functionality so it is moved to a new intermediate class inherited by GrFragmentProcessor and GrPrimitiveProcessor.
Change-Id: I4f30c89bdceb2d77b602bf0646107e0780881c26
Reviewed-on: https://skia-review.googlesource.com/11202
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include/gpu/GrFragmentProcessor.h')
-rw-r--r-- | include/gpu/GrFragmentProcessor.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/gpu/GrFragmentProcessor.h b/include/gpu/GrFragmentProcessor.h index c95c5e5956..acbc63ea77 100644 --- a/include/gpu/GrFragmentProcessor.h +++ b/include/gpu/GrFragmentProcessor.h @@ -23,7 +23,7 @@ class GrSwizzle; GrCoordTransforms to receive a transformation of the local coordinates that map from local space to the fragment being processed. */ -class GrFragmentProcessor : public GrProcessor { +class GrFragmentProcessor : public GrResourceIOProcessor { public: /** * In many instances (e.g. SkShader::asFragmentProcessor() implementations) it is desirable to @@ -228,9 +228,9 @@ public: &GrFragmentProcessor::coordTransform>; using TextureAccessIter = FPItemIter<TextureSampler, - GrProcessor, - &GrProcessor::numTextureSamplers, - &GrProcessor::textureSampler>; + GrResourceIOProcessor, + &GrResourceIOProcessor::numTextureSamplers, + &GrResourceIOProcessor::textureSampler>; protected: enum OptimizationFlags : uint32_t { |