diff options
author | Brian Salomon <bsalomon@google.com> | 2016-11-23 01:02:43 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-11-23 01:02:57 +0000 |
commit | 59dc41175d99d0a31c046aec0c26c4d82a3a3574 (patch) | |
tree | 5e1d050baec746da7f2fd2a83a128ab4e9d9cd1b /src/gpu/glsl/GrGLSLProgramBuilder.h | |
parent | 83a3b390dbeafb703af9b34049220e88834d10be (diff) |
Revert "Initial OpenGL Image support."
This reverts commit be34882042048db096baca32ddf4a8b472529804.
Reason for revert: Test failures and shader compilation issues on Android.
Original change's description:
> Initial OpenGL Image support.
>
> This change along with recently landed changes is enough to make the new unit test work and not much else. imageLoad is support but not stores or any other image functions (atomics). Barriers in the shading language or the GL API are not yet hooked up.
>
> GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4182
>
> Change-Id: I5958b7c89e40ae5ee05f7bbaca3b3738162fe5ce
> Reviewed-on: https://skia-review.googlesource.com/4182
> Reviewed-by: Greg Daniel <egdaniel@google.com>
> Reviewed-by: Chris Dalton <csmartdalton@google.com>
> Commit-Queue: Brian Salomon <bsalomon@google.com>
>
TBR=egdaniel@google.com,bsalomon@google.com,csmartdalton@google.com,reviews@skia.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Change-Id: I29a2502c296ae39ed9a999957800414ae46e6f0f
Reviewed-on: https://skia-review.googlesource.com/5129
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/glsl/GrGLSLProgramBuilder.h')
-rw-r--r-- | src/gpu/glsl/GrGLSLProgramBuilder.h | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/src/gpu/glsl/GrGLSLProgramBuilder.h b/src/gpu/glsl/GrGLSLProgramBuilder.h index 5543537d19..6c1eb3bf4b 100644 --- a/src/gpu/glsl/GrGLSLProgramBuilder.h +++ b/src/gpu/glsl/GrGLSLProgramBuilder.h @@ -28,9 +28,7 @@ typedef SkSTArray<8, GrGLSLFragmentProcessor*, true> GrGLSLFragProcs; class GrGLSLProgramBuilder { public: - using UniformHandle = GrGLSLUniformHandler::UniformHandle; - using SamplerHandle = GrGLSLUniformHandler::SamplerHandle; - using ImageStorageHandle = GrGLSLUniformHandler::ImageStorageHandle; + typedef GrGLSLUniformHandler::UniformHandle UniformHandle; virtual ~GrGLSLProgramBuilder() {} @@ -44,6 +42,8 @@ public: void appendUniformDecls(GrShaderFlags visibility, SkString*) const; + typedef GrGLSLUniformHandler::SamplerHandle SamplerHandle; + const GrShaderVar& samplerVariable(SamplerHandle handle) const { return this->uniformHandler()->samplerVariable(handle); } @@ -52,10 +52,6 @@ public: return this->uniformHandler()->samplerSwizzle(handle); } - const GrShaderVar& imageStorageVariable(ImageStorageHandle handle) const { - return this->uniformHandler()->imageStorageVariable(handle); - } - // Handles for program uniforms (other than per-effect uniforms) struct BuiltinUniformHandles { UniformHandle fRTAdjustmentUni; @@ -160,18 +156,17 @@ private: const GrGLSLExpr4& coverageIn, bool ignoresCoverage, GrPixelLocalStorageState plsState); - void emitSamplersAndImageStorages(const GrProcessor& processor, - SkTArray<SamplerHandle>* outTexSamplerHandles, - SkTArray<SamplerHandle>* outBufferSamplerHandles, - SkTArray<ImageStorageHandle>* outImageStorageHandles); - void emitSampler(GrSLType samplerType, GrPixelConfig, const char* name, - GrShaderFlags visibility, SkTArray<SamplerHandle >* outSamplerHandles); - void emitImageStorage(const GrProcessor::ImageStorageAccess&, - const char* name, - SkTArray<ImageStorageHandle>* outImageStorageHandles); + + void emitSamplers(const GrProcessor& processor, + SkTArray<SamplerHandle>* outTexSamplers, + SkTArray<SamplerHandle>* outBufferSamplers); + void emitSampler(GrSLType samplerType, + GrPixelConfig, + const char* name, + GrShaderFlags visibility, + SkTArray<SamplerHandle>* outSamplers); void emitFSOutputSwizzle(bool hasSecondaryOutput); bool checkSamplerCounts(); - bool checkImageStorageCounts(); #ifdef SK_DEBUG void verify(const GrPrimitiveProcessor&); @@ -182,9 +177,6 @@ private: int fNumVertexSamplers; int fNumGeometrySamplers; int fNumFragmentSamplers; - int fNumVertexImageStorages; - int fNumGeometryImageStorages; - int fNumFragmentImageStorages; SkSTArray<4, GrShaderVar> fTransformedCoordVars; }; |