| Index: content/common/gpu/client/gpu_memory_buffer_impl.cc
|
| diff --git a/content/common/gpu/client/gpu_memory_buffer_impl.cc b/content/common/gpu/client/gpu_memory_buffer_impl.cc
|
| index 2706bf12d2174c75326d9709b4c8a0b7b7aa7f84..b761d1dcec2330dd4b6529bf0d033361abd7076c 100644
|
| --- a/content/common/gpu/client/gpu_memory_buffer_impl.cc
|
| +++ b/content/common/gpu/client/gpu_memory_buffer_impl.cc
|
| @@ -11,11 +11,15 @@ namespace content {
|
| GpuMemoryBufferImpl::GpuMemoryBufferImpl(const gfx::Size& size,
|
| Format format,
|
| const DestructionCallback& callback)
|
| - : size_(size), format_(format), callback_(callback), mapped_(false) {
|
| + : size_(size),
|
| + format_(format),
|
| + callback_(callback),
|
| + mapped_(false),
|
| + destruction_sync_point_(0) {
|
| }
|
|
|
| GpuMemoryBufferImpl::~GpuMemoryBufferImpl() {
|
| - callback_.Run();
|
| + callback_.Run(destruction_sync_point_);
|
| }
|
|
|
| // static
|
|
|