summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/buffer_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/service/buffer_manager.cc')
-rw-r--r--gpu/command_buffer/service/buffer_manager.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/buffer_manager.cc b/gpu/command_buffer/service/buffer_manager.cc
index 2abc764..70c5ccb 100644
--- a/gpu/command_buffer/service/buffer_manager.cc
+++ b/gpu/command_buffer/service/buffer_manager.cc
@@ -10,6 +10,10 @@
namespace gpu {
namespace gles2 {
+BufferManager::BufferManager()
+ : allow_buffers_on_multiple_targets_(false) {
+}
+
BufferManager::~BufferManager() {
DCHECK(buffer_infos_.empty());
}
@@ -50,6 +54,15 @@ void BufferManager::RemoveBufferInfo(GLuint client_id) {
}
}
+BufferManager::BufferInfo::BufferInfo(GLuint service_id)
+ : service_id_(service_id),
+ target_(0),
+ size_(0),
+ shadowed_(false) {
+}
+
+BufferManager::BufferInfo::~BufferInfo() { }
+
void BufferManager::BufferInfo::SetSize(GLsizeiptr size, bool shadow) {
DCHECK(!IsDeleted());
if (size != size_ || shadow != shadowed_) {