From c8958e5a4f41a6242c3258af0925f35774dcfff7 Mon Sep 17 00:00:00 2001 From: Guido Urdaneta Date: Fri, 28 Feb 2020 16:28:34 +0100 Subject: [PATCH] Add RTC_EXPORT to VCMEncodedFrame This is needed to be able to use webrtc::video_coding::EncodedFrame is unit tests in Chromium. TBR=tommi@webrtc.org Bug: webrtc:11380 Change-Id: Idb3b0ab667a548f5a968e02a8efd91f02585c3f9 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/169451 Reviewed-by: Mirko Bonadei Reviewed-by: Rasmus Brandt Commit-Queue: Mirko Bonadei Cr-Commit-Position: refs/heads/master@{#30651} --- modules/video_coding/BUILD.gn | 1 + modules/video_coding/DEPS | 1 + modules/video_coding/encoded_frame.h | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/video_coding/BUILD.gn b/modules/video_coding/BUILD.gn index 935151f20e..6ec9f46212 100644 --- a/modules/video_coding/BUILD.gn +++ b/modules/video_coding/BUILD.gn @@ -28,6 +28,7 @@ rtc_library("encoded_frame") { "../../rtc_base:rtc_base_approved", "../../rtc_base/experiments:alr_experiment", "../../rtc_base/experiments:rtt_mult_experiment", + "../../rtc_base/system:rtc_export", "../../system_wrappers", "//third_party/abseil-cpp/absl/types:optional", "//third_party/abseil-cpp/absl/types:variant", diff --git a/modules/video_coding/DEPS b/modules/video_coding/DEPS index 1b8a98bb26..3a7629e84b 100644 --- a/modules/video_coding/DEPS +++ b/modules/video_coding/DEPS @@ -6,6 +6,7 @@ include_rules = [ "+system_wrappers", "+rtc_tools", "+third_party/libyuv", + "+rtc_base/system/rtc_export.h", ] specific_include_rules = { diff --git a/modules/video_coding/encoded_frame.h b/modules/video_coding/encoded_frame.h index 798c005e5d..2ca02632ce 100644 --- a/modules/video_coding/encoded_frame.h +++ b/modules/video_coding/encoded_frame.h @@ -17,10 +17,11 @@ #include "modules/rtp_rtcp/source/rtp_video_header.h" #include "modules/video_coding/include/video_codec_interface.h" #include "modules/video_coding/include/video_coding_defines.h" +#include "rtc_base/system/rtc_export.h" namespace webrtc { -class VCMEncodedFrame : protected EncodedImage { +class RTC_EXPORT VCMEncodedFrame : protected EncodedImage { public: VCMEncodedFrame(); VCMEncodedFrame(const VCMEncodedFrame&);