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

Side by Side Diff: content/browser/renderer_host/media/video_capture_buffer_pool.cc

Issue 1282313002: Add YUV_420_BIPLANAR to gfx::BufferFormat. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gmb-planes
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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/media/video_capture_buffer_pool.h" 5 #include "content/browser/renderer_host/media/video_capture_buffer_pool.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" 10 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h"
11 #include "content/public/browser/browser_thread.h" 11 #include "content/public/browser/browser_thread.h"
12 #include "ui/gfx/buffer_format_util.h" 12 #include "ui/gfx/buffer_format_util.h"
13 #include "ui/gfx/gpu_memory_buffer.h"
14 13
15 namespace content { 14 namespace content {
16 15
17 const int VideoCaptureBufferPool::kInvalidId = -1; 16 const int VideoCaptureBufferPool::kInvalidId = -1;
18 17
19 // A simple holder of a memory-backed buffer and accesors to it. 18 // A simple holder of a memory-backed buffer and accesors to it.
20 class SimpleBufferHandle final : public VideoCaptureBufferPool::BufferHandle { 19 class SimpleBufferHandle final : public VideoCaptureBufferPool::BufferHandle {
21 public: 20 public:
22 SimpleBufferHandle(void* data, size_t size, base::SharedMemoryHandle handle) 21 SimpleBufferHandle(void* data, size_t size, base::SharedMemoryHandle handle)
23 : data_(data), 22 : data_(data),
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 return buffer_id; 367 return buffer_id;
369 } 368 }
370 369
371 VideoCaptureBufferPool::Tracker* VideoCaptureBufferPool::GetTracker( 370 VideoCaptureBufferPool::Tracker* VideoCaptureBufferPool::GetTracker(
372 int buffer_id) { 371 int buffer_id) {
373 TrackerMap::const_iterator it = trackers_.find(buffer_id); 372 TrackerMap::const_iterator it = trackers_.find(buffer_id);
374 return (it == trackers_.end()) ? NULL : it->second; 373 return (it == trackers_.end()) ? NULL : it->second;
375 } 374 }
376 375
377 } // namespace content 376 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/browser_gpu_memory_buffer_manager.cc ('k') | content/common/gpu/client/gpu_memory_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698