#include "gpu/command_buffer/service/sampler_manager.h"
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "gpu/command_buffer/common/gles2_cmd_format.h"
#include "gpu/command_buffer/service/error_state.h"
#include "gpu/command_buffer/service/feature_info.h"
#include "gpu/command_buffer/service/gles2_cmd_decoder.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_fence.h"
#include "ui/gl/gpu_timing.h"
namespace gpu {
namespace gles2 {
SamplerState::SamplerState()
: … { … }
Sampler::Sampler(SamplerManager* manager, GLuint client_id, GLuint service_id)
: … { … }
Sampler::~Sampler() { … }
GLenum Sampler::SetParameteri(
const FeatureInfo* feature_info, GLenum pname, GLint param) { … }
GLenum Sampler::SetParameterf(
const FeatureInfo* feature_info, GLenum pname, GLfloat param) { … }
SamplerManager::SamplerManager(FeatureInfo* feature_info)
: … { … }
SamplerManager::~SamplerManager() { … }
void SamplerManager::Destroy(bool have_context) { … }
Sampler* SamplerManager::CreateSampler(GLuint client_id, GLuint service_id) { … }
Sampler* SamplerManager::GetSampler(GLuint client_id) { … }
void SamplerManager::RemoveSampler(GLuint client_id) { … }
void SamplerManager::SetParameteri(
const char* function_name, ErrorState* error_state,
Sampler* sampler, GLenum pname, GLint param) { … }
void SamplerManager::SetParameterf(
const char* function_name, ErrorState* error_state,
Sampler* sampler, GLenum pname, GLfloat param) { … }
}
}