Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(558)

Issue 2530303002: Use RotateDesktopFrame in DirectX capturer (Closed)

Created:
4 years ago by Hzj_jie
Modified:
4 years ago
Reviewers:
Sergey Ulanov, Jamie
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Use 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)
Hzj_jie
4 years ago (2016-11-28 02:29:24 UTC) #15
Sergey Ulanov
lgtm https://codereview.webrtc.org/2530303002/diff/40001/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc File webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc (right): https://codereview.webrtc.org/2530303002/diff/40001/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc#newcode40 webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc:40: Rotation DXGI_MODE_ROTATIONToRotation(DXGI_MODE_ROTATION rotation) { Call it DxgiRotationToRotation()? https://codereview.webrtc.org/2530303002/diff/40001/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc#newcode59 ...
4 years ago (2016-11-28 23:12:35 UTC) #18
Hzj_jie
https://codereview.webrtc.org/2530303002/diff/40001/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc File webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc (right): https://codereview.webrtc.org/2530303002/diff/40001/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc#newcode40 webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc:40: Rotation DXGI_MODE_ROTATIONToRotation(DXGI_MODE_ROTATION rotation) { On 2016/11/28 23:12:35, Sergey Ulanov ...
4 years ago (2016-11-29 01:21:39 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2530303002/80001
4 years ago (2016-11-30 00:08:17 UTC) #34
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years ago (2016-11-30 00:09:56 UTC) #37
commit-bot: I haz the power
4 years ago (2016-11-30 00:10:03 UTC) #39
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e61fbfffda8d09080c964489b8ebed80e9d1cb29
Cr-Commit-Position: refs/heads/master@{#15308}

Powered by Google App Engine
This is Rietveld 408576698