summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host/media/video_capture_buffer_pool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/renderer_host/media/video_capture_buffer_pool.cc')
-rw-r--r--content/browser/renderer_host/media/video_capture_buffer_pool.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/content/browser/renderer_host/media/video_capture_buffer_pool.cc b/content/browser/renderer_host/media/video_capture_buffer_pool.cc
index 4d3e9a1..ea8ff20 100644
--- a/content/browser/renderer_host/media/video_capture_buffer_pool.cc
+++ b/content/browser/renderer_host/media/video_capture_buffer_pool.cc
@@ -8,8 +8,9 @@
#include "base/memory/scoped_ptr.h"
#include "base/stl_util.h"
#include "content/browser/gpu/browser_gpu_memory_buffer_manager.h"
-#include "content/common/gpu/client/gpu_memory_buffer_impl.h"
#include "content/public/browser/browser_thread.h"
+#include "ui/gfx/buffer_format_util.h"
+#include "ui/gfx/gpu_memory_buffer.h"
namespace content {
@@ -57,9 +58,7 @@ class GpuMemoryBufferBufferHandle
public:
GpuMemoryBufferBufferHandle(gfx::GpuMemoryBuffer* gmb, size_t size)
: gmb_(gmb),
- data_(new void* [GpuMemoryBufferImpl::
- NumberOfPlanesForGpuMemoryBufferFormat(
- gmb_->GetFormat())]),
+ data_(new void*[gfx::NumberOfPlanesForBufferFormat(gmb_->GetFormat())]),
size_(size) {
DCHECK(gmb && !gmb_->IsMapped());
gmb_->Map(data_.get());