Index: content/browser/compositor/buffer_queue.cc |
diff --git a/content/browser/compositor/buffer_queue.cc b/content/browser/compositor/buffer_queue.cc |
index fe306aa3e9626e346a69259a012b620266c57069..bb1919e8e5a1e3fb7562e8de5e170e7790a0da1b 100644 |
--- a/content/browser/compositor/buffer_queue.cc |
+++ b/content/browser/compositor/buffer_queue.cc |
@@ -12,6 +12,7 @@ |
#include "content/common/gpu/client/context_provider_command_buffer.h" |
#include "gpu/GLES2/gl2extchromium.h" |
#include "gpu/command_buffer/client/gles2_interface.h" |
+#include "gpu/command_buffer/common/gpu_memory_buffer_support.h" |
#include "gpu/command_buffer/service/image_factory.h" |
#include "third_party/skia/include/core/SkRect.h" |
#include "third_party/skia/include/core/SkRegion.h" |
@@ -223,8 +224,7 @@ scoped_ptr<BufferQueue::AllocatedSurface> BufferQueue::GetNextSurface() { |
scoped_ptr<gfx::GpuMemoryBuffer> buffer( |
gpu_memory_buffer_manager_->AllocateGpuMemoryBufferForScanout( |
- size_, gpu::ImageFactory::DefaultBufferFormatForImageFormat( |
- internal_format_), |
+ size_, gpu::DefaultBufferFormatForImageFormat(internal_format_), |
surface_id_)); |
if (!buffer.get()) { |
gl->DeleteTextures(1, &texture); |