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
{
ProgramPipelineState::ProgramPipelineState()
: mLabel(),
mActiveShaderProgram(nullptr),
mValid(false),
mHasBeenBound(false),
mExecutable(new ProgramExecutable())
: mLabel(), mActiveShaderProgram(nullptr), mValid(false), mExecutable(new ProgramExecutable())
{
for (const ShaderType shaderType : gl::AllShaderTypes())
{
......
......@@ -74,8 +74,6 @@ class ProgramPipelineState final : angle::NonCopyable
GLboolean mValid;
GLboolean mHasBeenBound;
ProgramExecutable *mExecutable;
};
......@@ -128,9 +126,6 @@ class ProgramPipeline final : public RefCountObject<ProgramPipelineID>, public L
GLboolean isValid() const { return mState.isValid(); }
void bind() { mState.mHasBeenBound = true; }
GLboolean hasBeenBound() const { return mState.mHasBeenBound; }
// Program pipeline dirty bits.
enum DirtyBitType
{
......
......@@ -1894,7 +1894,6 @@ angle::Result State::setProgramPipelineBinding(const Context *context, ProgramPi
if (mProgramPipeline.get())
{
mProgramPipeline->bind();
ANGLE_TRY(onProgramPipelineExecutableChange(context, mProgramPipeline.get()));
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