Commit e0a2bd5e by Tim Van Patten Committed by Commit Bot

Remove ProgramPipelineState::mHasBeenBound

The member ProgramPipelineState::mHasBeenBound is unused and should be removed. Bug: angleproject:3570 Test: CQ Change-Id: Idc41574f79e665ac36bef5b206704c667c49dadb Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2301101Reviewed-by: 's avatarCourtney Goeltzenleuchter <courtneygo@google.com> Reviewed-by: 's avatarCharlie Lao <cclao@google.com> Reviewed-by: 's avatarTim Van Patten <timvp@google.com> Commit-Queue: Tim Van Patten <timvp@google.com>
parent 22e1f3e2
...@@ -23,11 +23,7 @@ namespace gl ...@@ -23,11 +23,7 @@ namespace gl
{ {
ProgramPipelineState::ProgramPipelineState() ProgramPipelineState::ProgramPipelineState()
: mLabel(), : mLabel(), mActiveShaderProgram(nullptr), mValid(false), mExecutable(new ProgramExecutable())
mActiveShaderProgram(nullptr),
mValid(false),
mHasBeenBound(false),
mExecutable(new ProgramExecutable())
{ {
for (const ShaderType shaderType : gl::AllShaderTypes()) for (const ShaderType shaderType : gl::AllShaderTypes())
{ {
......
...@@ -74,8 +74,6 @@ class ProgramPipelineState final : angle::NonCopyable ...@@ -74,8 +74,6 @@ class ProgramPipelineState final : angle::NonCopyable
GLboolean mValid; GLboolean mValid;
GLboolean mHasBeenBound;
ProgramExecutable *mExecutable; ProgramExecutable *mExecutable;
}; };
...@@ -128,9 +126,6 @@ class ProgramPipeline final : public RefCountObject<ProgramPipelineID>, public L ...@@ -128,9 +126,6 @@ class ProgramPipeline final : public RefCountObject<ProgramPipelineID>, public L
GLboolean isValid() const { return mState.isValid(); } GLboolean isValid() const { return mState.isValid(); }
void bind() { mState.mHasBeenBound = true; }
GLboolean hasBeenBound() const { return mState.mHasBeenBound; }
// Program pipeline dirty bits. // Program pipeline dirty bits.
enum DirtyBitType enum DirtyBitType
{ {
......
...@@ -1894,7 +1894,6 @@ angle::Result State::setProgramPipelineBinding(const Context *context, ProgramPi ...@@ -1894,7 +1894,6 @@ angle::Result State::setProgramPipelineBinding(const Context *context, ProgramPi
if (mProgramPipeline.get()) if (mProgramPipeline.get())
{ {
mProgramPipeline->bind();
ANGLE_TRY(onProgramPipelineExecutableChange(context, mProgramPipeline.get())); ANGLE_TRY(onProgramPipelineExecutableChange(context, mProgramPipeline.get()));
if (mProgramPipeline->hasAnyDirtyBit()) if (mProgramPipeline->hasAnyDirtyBit())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment