From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- media/omx-plugin/lib/ics/libutils/libutils.cpp | 84 ++++++++++++++++++++++++++ media/omx-plugin/lib/ics/libutils/moz.build | 25 ++++++++ 2 files changed, 109 insertions(+) create mode 100644 media/omx-plugin/lib/ics/libutils/libutils.cpp create mode 100644 media/omx-plugin/lib/ics/libutils/moz.build (limited to 'media/omx-plugin/lib/ics/libutils') diff --git a/media/omx-plugin/lib/ics/libutils/libutils.cpp b/media/omx-plugin/lib/ics/libutils/libutils.cpp new file mode 100644 index 000000000..67f5a540a --- /dev/null +++ b/media/omx-plugin/lib/ics/libutils/libutils.cpp @@ -0,0 +1,84 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim:set ts=2 sw=2 sts=2 et cindent: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include "mozilla/Types.h" +#include "utils/RefBase.h" +#include "utils/String16.h" +#include "utils/String8.h" +#include "utils/Vector.h" + +namespace android { +MOZ_EXPORT RefBase::RefBase() : mRefs(0) +{ +} + +MOZ_EXPORT RefBase::~RefBase() +{ +} + +MOZ_EXPORT void RefBase::incStrong(const void *id) const +{ +} + +MOZ_EXPORT void RefBase::decStrong(const void *id) const +{ +} + +MOZ_EXPORT void RefBase::onFirstRef() +{ +} + +MOZ_EXPORT void RefBase::onLastStrongRef(const void* id) +{ +} + +MOZ_EXPORT bool RefBase::onIncStrongAttempted(uint32_t flags, const void* id) +{ + return false; +} + +MOZ_EXPORT void RefBase::onLastWeakRef(void const* id) +{ +} + +MOZ_EXPORT String16::String16(char const*) +{ +} + +MOZ_EXPORT String16::~String16() +{ +} + +MOZ_EXPORT String8::String8() +{ +} + +MOZ_EXPORT String8::String8(const String8 &) +{ +} + +MOZ_EXPORT String8::~String8() +{ +} + +MOZ_EXPORT VectorImpl::VectorImpl(size_t, uint32_t) + : mFlags(0), mItemSize(0) +{ +} + +MOZ_EXPORT VectorImpl::VectorImpl(const VectorImpl &) + : mFlags(0), mItemSize(0) +{ +} + +MOZ_EXPORT VectorImpl::~VectorImpl() +{ +} + +MOZ_EXPORT void VectorImpl::finish_vector() +{ +} + +} diff --git a/media/omx-plugin/lib/ics/libutils/moz.build b/media/omx-plugin/lib/ics/libutils/moz.build new file mode 100644 index 000000000..efce12194 --- /dev/null +++ b/media/omx-plugin/lib/ics/libutils/moz.build @@ -0,0 +1,25 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +DIST_INSTALL = False + +if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk': + SOURCES += [ + 'libutils.cpp', + ] + +SharedLibrary('utils') + +LOCAL_INCLUDES += [ + '/media/omx-plugin/include/ics', + '/media/omx-plugin/include/ics/media/stagefright/openmax', +] + +# Don't use STL wrappers; this isn't Gecko code +DISABLE_STL_WRAPPING = True +NO_VISIBILITY_FLAGS = True + +if CONFIG['GNU_CXX']: + CXXFLAGS += ['-Wno-shadow'] -- cgit v1.2.3