DescriptionUse RotateDesktopFrame in DirectX capturer
To support rotation in DirectX capturer, several other changes are also
required.
1. Removing AddRect in RotateDesktopFrame, this is a performance improvement.
DxgiOutputDuplicator creates a rotated DesktopRegion, which can be directly
add to updated_region.
2. DxgiOutputDuplicator::SourceRect() is not accurate, the rectangle in source
is controlled by |offset| or |rotation_| + |offset|, instead of desktop_rect().
3. The |region| in DxgiTexture::CopyFrom() is not accurate. It needs an
unrotated DesktopRegion which offsets by |offset| instead of desktop_rect(). To
avoid generating both rotated and unrotated updated_region, this parameter has
been removed. This impacts DxgiTextureStagning performance a little bit (1.5ms).
Refer to bug for details.
BUG=webrtc:6646
Committed: https://crrev.com/e61fbfffda8d09080c964489b8ebed80e9d1cb29
Cr-Commit-Position: refs/heads/master@{#15308}
Patch Set 1 #
Total comments: 8
Patch Set 2 : Resolve review comments #Patch Set 3 : Sync latest changes #Messages
Total messages: 39 (33 generated)
|