summaryrefslogtreecommitdiffstats
path: root/content/common/gpu/client/gpu_memory_buffer_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/gpu/client/gpu_memory_buffer_impl.cc')
-rw-r--r--content/common/gpu/client/gpu_memory_buffer_impl.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl.cc b/content/common/gpu/client/gpu_memory_buffer_impl.cc
index e900829..bfe4656 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl.cc
+++ b/content/common/gpu/client/gpu_memory_buffer_impl.cc
@@ -29,11 +29,12 @@ GpuMemoryBufferImpl::GpuMemoryBufferImpl(gfx::GpuMemoryBufferId id,
size_(size),
format_(format),
callback_(callback),
- mapped_(false) {}
+ mapped_(false),
+ destruction_sync_point_(0) {}
GpuMemoryBufferImpl::~GpuMemoryBufferImpl() {
DCHECK(!mapped_);
- callback_.Run(destruction_sync_token_);
+ callback_.Run(destruction_sync_point_);
}
// static