| Index: webrtc/modules/desktop_capture/desktop_capturer.h
|
| diff --git a/webrtc/modules/desktop_capture/desktop_capturer.h b/webrtc/modules/desktop_capture/desktop_capturer.h
|
| index ecae4cb2e092f2d5bb0518fe7842194407871f39..71834a96f0efdeb167c41f6c5a19b0edc8fd160a 100644
|
| --- a/webrtc/modules/desktop_capture/desktop_capturer.h
|
| +++ b/webrtc/modules/desktop_capture/desktop_capturer.h
|
| @@ -16,6 +16,7 @@
|
|
|
| #include <memory>
|
| #include <string>
|
| +#include <type_traits>
|
| #include <vector>
|
|
|
| #include "webrtc/modules/desktop_capture/desktop_frame.h"
|
| @@ -59,6 +60,9 @@ class DesktopCapturer {
|
|
|
| typedef intptr_t SourceId;
|
|
|
| + static_assert(std::is_same<SourceId, ScreenId>::value,
|
| + "SourceId should be a same type as ScreenId.");
|
| +
|
| struct Source {
|
| // The unique id to represent a Source of current DesktopCapturer.
|
| SourceId id;
|
|
|