Index: gpu/command_buffer/service/buffer_manager.cc |
diff --git a/gpu/command_buffer/service/buffer_manager.cc b/gpu/command_buffer/service/buffer_manager.cc |
index 2abc764caaf69495bf4e28b8ab336fdc92024374..70c5ccbadba372ae7aecdaee5ba88ed09748469d 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_) { |