Chromium Code Reviews| Index: webrtc/modules/desktop_capture/desktop_frame.h |
| diff --git a/webrtc/modules/desktop_capture/desktop_frame.h b/webrtc/modules/desktop_capture/desktop_frame.h |
| index d491135029fe45f79940e81d1c042961ef0ab7cf..c9790000a6492bb925dcc60680bc446032f63e5f 100644 |
| --- a/webrtc/modules/desktop_capture/desktop_frame.h |
| +++ b/webrtc/modules/desktop_capture/desktop_frame.h |
| @@ -14,6 +14,7 @@ |
| #include <memory> |
| #include "webrtc/base/constructormagic.h" |
| +#include "webrtc/modules/desktop_capture/desktop_capture_types.h" |
| #include "webrtc/modules/desktop_capture/desktop_geometry.h" |
| #include "webrtc/modules/desktop_capture/desktop_region.h" |
| #include "webrtc/modules/desktop_capture/shared_memory.h" |
| @@ -68,6 +69,13 @@ class DesktopFrame { |
| // A helper to return the data pointer of a frame at the specified position. |
| uint8_t* GetFrameDataAtPos(const DesktopVector& pos) const; |
| + // The generator of current DesktopFrame. Not all DesktopCapturer |
|
Sergey Ulanov
2017/03/21 18:54:37
nit: It's not clear from the comment that this ide
Hzj_jie
2017/03/21 19:38:49
Done.
|
| + // implementations set this field. |
| + uint32_t capturer_id() const { return capturer_id_; } |
| + void set_capturer_id(uint32_t capturer_id) { |
| + capturer_id_ = capturer_id; |
| + } |
| + |
| protected: |
| DesktopFrame(DesktopSize size, |
| int stride, |
| @@ -87,6 +95,7 @@ class DesktopFrame { |
| DesktopRegion updated_region_; |
| DesktopVector dpi_; |
| int64_t capture_time_ms_; |
| + uint32_t capturer_id_; |
| RTC_DISALLOW_COPY_AND_ASSIGN(DesktopFrame); |
| }; |