#include "gpu/command_buffer/service/indexed_buffer_binding_host.h"
#include "gpu/command_buffer/service/buffer_manager.h"
namespace gpu {
namespace gles2 {
IndexedBufferBindingHost::IndexedBufferBinding::IndexedBufferBinding()
: … { … }
IndexedBufferBindingHost::IndexedBufferBinding::IndexedBufferBinding(
const IndexedBufferBindingHost::IndexedBufferBinding& other)
: … { … }
IndexedBufferBindingHost::IndexedBufferBinding::~IndexedBufferBinding() =
default;
bool IndexedBufferBindingHost::IndexedBufferBinding::operator==(
const IndexedBufferBindingHost::IndexedBufferBinding& other) const { … }
void IndexedBufferBindingHost::IndexedBufferBinding::SetBindBufferBase(
Buffer* _buffer) { … }
void IndexedBufferBindingHost::IndexedBufferBinding::SetBindBufferRange(
Buffer* _buffer, GLintptr _offset, GLsizeiptr _size) { … }
void IndexedBufferBindingHost::IndexedBufferBinding::Reset() { … }
IndexedBufferBindingHost::IndexedBufferBindingHost(
uint32_t max_bindings,
GLenum target,
bool needs_emulation,
bool round_down_uniform_bind_buffer_range_size)
: … { … }
IndexedBufferBindingHost::~IndexedBufferBindingHost() { … }
void IndexedBufferBindingHost::DoBindBufferBase(GLuint index, Buffer* buffer) { … }
void IndexedBufferBindingHost::DoBindBufferRange(GLuint index,
Buffer* buffer,
GLintptr offset,
GLsizeiptr size) { … }
void IndexedBufferBindingHost::DoAdjustedBindBufferRange(
GLenum target,
GLuint index,
GLuint service_id,
GLintptr offset,
GLsizeiptr size,
GLsizeiptr full_buffer_size,
bool round_down_uniform_bind_buffer_range_size) { … }
void IndexedBufferBindingHost::OnBufferData(Buffer* buffer) { … }
void IndexedBufferBindingHost::RemoveBoundBuffer(
GLenum target,
Buffer* buffer,
Buffer* target_generic_bound_buffer,
bool have_context) { … }
void IndexedBufferBindingHost::SetIsBound(bool is_bound) { … }
Buffer* IndexedBufferBindingHost::GetBufferBinding(GLuint index) const { … }
GLsizeiptr IndexedBufferBindingHost::GetBufferSize(GLuint index) const { … }
GLsizeiptr IndexedBufferBindingHost::GetEffectiveBufferSize(
GLuint index) const { … }
GLintptr IndexedBufferBindingHost::GetBufferStart(GLuint index) const { … }
void IndexedBufferBindingHost::RestoreBindings(
IndexedBufferBindingHost* prev) { … }
void IndexedBufferBindingHost::UpdateMaxNonNullBindingIndex(
size_t changed_index) { … }
bool IndexedBufferBindingHost::UsesBuffer(
size_t used_binding_count, const Buffer* buffer) const { … }
}
}