// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MEDIA_GPU_MACROS_H_ #define MEDIA_GPU_MACROS_H_ #include "base/logging.h" // Try to adhere to [1] when adding and using logging. // [1] // https://chromium.googlesource.com/chromium/src/+/main/media/README.md#dvlog #define DVLOGF(level) … #define DVLOGF_IF(level, condition) … #define VLOGF(level) … #define VPLOGF(level) … #define LOGF(severity) … #define DLOGF(severity) … #define DLOGF_IF(severity, condition) … namespace media { // Copy the memory between arrays with checking the array size. template <typename T, size_t N> inline void SafeArrayMemcpy(T (&to)[N], const T (&from)[N]) { … } } // namespace media #endif // MEDIA_GPU_MACROS_H_