VideoBridgeUtils.h (1020B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #ifndef IPC_VideoBridgeUtils_h 8 #define IPC_VideoBridgeUtils_h 9 10 #include "ipc/EnumSerializer.h" 11 12 namespace mozilla { 13 namespace layers { 14 15 enum class VideoBridgeSource : uint8_t { 16 RddProcess, 17 GpuProcess, 18 MFMediaEngineCDMProcess, 19 _Count, 20 }; 21 22 typedef Maybe<VideoBridgeSource> MaybeVideoBridgeSource; 23 24 } // namespace layers 25 } // namespace mozilla 26 27 namespace IPC { 28 29 template <> 30 struct ParamTraits<mozilla::layers::VideoBridgeSource> 31 : public ContiguousEnumSerializer< 32 mozilla::layers::VideoBridgeSource, 33 mozilla::layers::VideoBridgeSource::RddProcess, 34 mozilla::layers::VideoBridgeSource::_Count> {}; 35 36 } // namespace IPC 37 38 #endif // IPC_VideoBridgeUtils_h