Hash :
097d3c0c
Author :
Date :
2018-09-12T11:03:05
Make SamplerState a contained class. This will more easily allow us to use a cached completeness comparison value. The cached value only gets updated on certain setters. Bug: angleproject:2763 Change-Id: Ib80db8517560617087ae8360f7af69d6c2392b76 Reviewed-on: https://chromium-review.googlesource.com/1171507 Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Frank Henigman <fjhenigman@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
//
// Copyright 2014 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// SamplerImpl.h: Defines the abstract rx::SamplerImpl class.
#ifndef LIBANGLE_RENDERER_SAMPLERIMPL_H_
#define LIBANGLE_RENDERER_SAMPLERIMPL_H_
#include "common/angleutils.h"
namespace gl
{
class Context;
class SamplerState;
} // namespace gl
namespace rx
{
class SamplerImpl : angle::NonCopyable
{
public:
SamplerImpl(const gl::SamplerState &state) : mState(state) {}
virtual ~SamplerImpl() {}
virtual void syncState(const gl::Context *context)
{
// Default implementation: no-op.
}
protected:
const gl::SamplerState &mState;
};
} // namespace rx
#endif // LIBANGLE_RENDERER_SAMPLERIMPL_H_