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

Unified Diff: webrtc/modules/desktop_capture/win/dxgi_texture_mapping.cc

Issue 2530303002: Use RotateDesktopFrame in DirectX capturer (Closed)
Patch Set: Sync latest changes Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/desktop_capture/win/dxgi_texture_mapping.cc
diff --git a/webrtc/modules/desktop_capture/win/dxgi_texture_mapping.cc b/webrtc/modules/desktop_capture/win/dxgi_texture_mapping.cc
index 573b9a053f69f4a9064a17d8a18a3dc0af9efa05..dbe494850671db1394e1ac66c090acc62e7feecf 100644
--- a/webrtc/modules/desktop_capture/win/dxgi_texture_mapping.cc
+++ b/webrtc/modules/desktop_capture/win/dxgi_texture_mapping.cc
@@ -19,17 +19,16 @@
namespace webrtc {
-DxgiTextureMapping::DxgiTextureMapping(const DesktopRect& desktop_rect,
+DxgiTextureMapping::DxgiTextureMapping(const DesktopSize& desktop_size,
IDXGIOutputDuplication* duplication)
- : DxgiTexture(desktop_rect), duplication_(duplication) {
+ : DxgiTexture(desktop_size), duplication_(duplication) {
RTC_DCHECK(duplication_);
}
DxgiTextureMapping::~DxgiTextureMapping() = default;
bool DxgiTextureMapping::CopyFrom(const DXGI_OUTDUPL_FRAME_INFO& frame_info,
- IDXGIResource* resource,
- const DesktopRegion& region) {
+ IDXGIResource* resource) {
RTC_DCHECK(resource && frame_info.AccumulatedFrames > 0);
rect_ = {0};
_com_error error = duplication_->MapDesktopSurface(&rect_);
« no previous file with comments | « webrtc/modules/desktop_capture/win/dxgi_texture_mapping.h ('k') | webrtc/modules/desktop_capture/win/dxgi_texture_staging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698