Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: content/browser/renderer_host/media/video_capture_buffer_pool.cc

Issue 1281043006: Move NumberOfPlanesForGpuMemoryBufferFormat to gfx (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/media/video_capture_buffer_pool.cc
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 4d3e9a1ffa3d90b50e7b50e555dcf68662d69981..ea8ff20ea52008b6874b7245c2963f8e177489cc 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());
« no previous file with comments | « components/view_manager/gles2/mojo_gpu_memory_buffer.cc ('k') | content/child/child_thread_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698