blob: 03443a107a8a55bf6f903822e6713adf5de28467 [file] [log] [blame]
// 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