cc: Added inline to Tile::IsReadyToDraw
[chromium-blink-merge.git] / media / webm / chromeos / ebml_writer.cc
blob5c5f07db718744f9c57f21d4cc7b9ddcbe3bc0ce
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "media/webm/chromeos/ebml_writer.h"
7 #include "media/base/media_export.h"
9 extern "C" {
10 #include "third_party/libvpx/source/libvpx/libmkv/EbmlWriter.h"
12 EbmlGlobal::EbmlGlobal() {
15 EbmlGlobal::~EbmlGlobal() {
18 // These functions must be in the global namespace and visible to libmkv.
20 void MEDIA_EXPORT Ebml_Write(EbmlGlobal* glob,
21 const void* buffer,
22 unsigned long len) {
23 glob->write_cb.Run(buffer, len);
26 void MEDIA_EXPORT Ebml_Serialize(EbmlGlobal* glob,
27 const void* buffer,
28 int buffer_size,
29 unsigned long len) {
30 glob->serialize_cb.Run(buffer, buffer_size, len);
33 } // extern "C"