Add new constructors for all DesktopFrame inheritances

This change adds constructors for all DesktopFrame inheritances to pass in
DesktopRect instead of DesktopSize.
Because the newly added constructors and DesktopFrame::top_left() function are
not actively used, this change should have no logic impact.

Bug: webrtc:7950
Change-Id: If78187865c991211dfc28d3723403ce6e6fe0290
Reviewed-on: https://chromium-review.googlesource.com/590508
Reviewed-by: Jamie Walch <jamiewalch@chromium.org>
Commit-Queue: Zijie He <zijiehe@chromium.org>
Cr-Commit-Position: refs/heads/master@{#19204}
This commit is contained in:
Zijie He
2017-07-31 20:26:11 -07:00
committed by Commit Bot
parent b1338fec81
commit 09f16c6a0a
5 changed files with 88 additions and 25 deletions

View File

@ -47,7 +47,7 @@ bool SharedDesktopFrame::IsShared() {
}
SharedDesktopFrame::SharedDesktopFrame(rtc::scoped_refptr<Core> core)
: DesktopFrame((*core)->size(),
: DesktopFrame((*core)->rect(),
(*core)->stride(),
(*core)->data(),
(*core)->shared_memory()),