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

Unified Diff: webrtc/modules/desktop_capture/win/dxgi_texture.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.cc
diff --git a/webrtc/modules/desktop_capture/win/dxgi_texture.cc b/webrtc/modules/desktop_capture/win/dxgi_texture.cc
index c798631bdcbfbb23c4cb70def9b53fecf4dc93df..9af8a06cd5e009d188c357319485a91a9d20e04a 100644
--- a/webrtc/modules/desktop_capture/win/dxgi_texture.cc
+++ b/webrtc/modules/desktop_capture/win/dxgi_texture.cc
@@ -19,7 +19,7 @@ namespace {
class DxgiDesktopFrame : public DesktopFrame {
public:
explicit DxgiDesktopFrame(const DxgiTexture& texture)
- : DesktopFrame(texture.desktop_rect().size(),
+ : DesktopFrame(texture.desktop_size(),
texture.pitch(),
texture.bits(),
nullptr) {}
@@ -29,8 +29,8 @@ class DxgiDesktopFrame : public DesktopFrame {
} // namespace
-DxgiTexture::DxgiTexture(const DesktopRect& desktop_rect)
- : desktop_rect_(desktop_rect) {}
+DxgiTexture::DxgiTexture(const DesktopSize& desktop_size)
+ : desktop_size_(desktop_size) {}
DxgiTexture::~DxgiTexture() {}
« no previous file with comments | « webrtc/modules/desktop_capture/win/dxgi_texture.h ('k') | webrtc/modules/desktop_capture/win/dxgi_texture_mapping.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698