| Index: mojo/services/media/common/cpp/shared_media_buffer_allocator.cc
|
| diff --git a/mojo/services/media/common/cpp/shared_media_buffer_allocator.cc b/mojo/services/media/common/cpp/shared_media_buffer_allocator.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..075420391979368c5bba9bc0d53a368981ad9898
|
| --- /dev/null
|
| +++ b/mojo/services/media/common/cpp/shared_media_buffer_allocator.cc
|
| @@ -0,0 +1,20 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "mojo/services/media/common/cpp/shared_media_buffer_allocator.h"
|
| +
|
| +namespace mojo {
|
| +namespace media {
|
| +
|
| +SharedMediaBufferAllocator::~SharedMediaBufferAllocator() {
|
| + std::lock_guard<std::mutex> lock(lock_);
|
| +}
|
| +
|
| +void SharedMediaBufferAllocator::OnInit() {
|
| + std::lock_guard<std::mutex> lock(lock_);
|
| + fifo_allocator_.Reset(size());
|
| +}
|
| +
|
| +} // namespace media
|
| +} // namespace mojo
|
|
|