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

Unified Diff: webrtc/modules/desktop_capture/win/dxgi_texture.h

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.h
diff --git a/webrtc/modules/desktop_capture/win/dxgi_texture.h b/webrtc/modules/desktop_capture/win/dxgi_texture.h
index 9500082c94f57851a0880701b45a054e8d6ce9d3..a4bd237e01e33fea4615b1538654399c56449748 100644
--- a/webrtc/modules/desktop_capture/win/dxgi_texture.h
+++ b/webrtc/modules/desktop_capture/win/dxgi_texture.h
@@ -25,19 +25,18 @@ class DesktopRegion;
// A texture copied or mapped from a DXGI_OUTDUPL_FRAME_INFO and IDXGIResource.
class DxgiTexture {
public:
- // Creates a DxgiTexture instance, which represents the DesktopRect area of
+ // Creates a DxgiTexture instance, which represents the |desktop_size| area of
// entire screen -- usually a monitor on the system.
- explicit DxgiTexture(const DesktopRect& desktop_rect);
+ explicit DxgiTexture(const DesktopSize& desktop_size);
virtual ~DxgiTexture();
// Copies selected regions of a frame represented by frame_info and resource.
// Returns false if anything wrong.
virtual bool CopyFrom(const DXGI_OUTDUPL_FRAME_INFO& frame_info,
- IDXGIResource* resource,
- const DesktopRegion& region) = 0;
+ IDXGIResource* resource) = 0;
- const DesktopRect& desktop_rect() const { return desktop_rect_; }
+ const DesktopSize& desktop_size() const { return desktop_size_; }
uint8_t* bits() const { return static_cast<uint8_t*>(rect_.pBits); }
@@ -60,7 +59,7 @@ class DxgiTexture {
private:
virtual bool DoRelease() = 0;
- const DesktopRect desktop_rect_;
+ const DesktopSize desktop_size_;
std::unique_ptr<DesktopFrame> frame_;
};
« no previous file with comments | « webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc ('k') | webrtc/modules/desktop_capture/win/dxgi_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698