| Index: content/browser/compositor/buffer_queue.cc
|
| diff --git a/content/browser/compositor/buffer_queue.cc b/content/browser/compositor/buffer_queue.cc
|
| index 689288f6d63b75d10c0b329fb32205d234ee1140..3aa81a4f93f0b75e672a480753a5058999859b98 100644
|
| --- a/content/browser/compositor/buffer_queue.cc
|
| +++ b/content/browser/compositor/buffer_queue.cc
|
| @@ -178,8 +178,10 @@ BufferQueue::AllocatedSurface BufferQueue::GetNextSurface() {
|
| return AllocatedSurface();
|
| }
|
|
|
| + const ClientBuffer& client_buffer = buffer->AsClientBuffer();
|
| unsigned int id = gl->CreateImageCHROMIUM(
|
| - buffer->AsClientBuffer(), size_.width(), size_.height(), internalformat_);
|
| + const_cast<const ClientBuffer* const>(&client_buffer), size_.width(),
|
| + size_.height(), internalformat_);
|
|
|
| if (!id) {
|
| LOG(ERROR) << "Failed to allocate backing image surface";
|
|
|