blob: 0145d106ab532558514f78bc7096f4ae09c9a0ec [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SAMPLER_GLES_H_
#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SAMPLER_GLES_H_
#include "impeller/base/backend_cast.h"
#include "impeller/core/sampler.h"
namespace impeller {
class TextureGLES;
class SamplerLibraryGLES;
class ProcTableGLES;
class SamplerGLES final : public Sampler,
public BackendCast<SamplerGLES, Sampler> {
public:
~SamplerGLES();
bool ConfigureBoundTexture(const TextureGLES& texture,
const ProcTableGLES& gl) const;
private:
friend class SamplerLibraryGLES;
explicit SamplerGLES(SamplerDescriptor desc);
SamplerGLES(const SamplerGLES&) = delete;
SamplerGLES& operator=(const SamplerGLES&) = delete;
};
} // namespace impeller
#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SAMPLER_GLES_H_