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

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

Issue 2788863006: Merge ScreenCapturerWinDirectx::frames_ and contexts_ (Closed)
Patch Set: Resolve review comments Created 3 years, 8 months 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_output_duplicator.h
diff --git a/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h b/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h
index 2e85bf7a08a21c4b88b48f16a70ab0f3b3ba39d8..7d2c2edef605c72d91b7dcd76a024718d805208e 100644
--- a/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h
+++ b/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h
@@ -26,6 +26,7 @@
#include "webrtc/modules/desktop_capture/desktop_frame_rotation.h"
#include "webrtc/modules/desktop_capture/shared_desktop_frame.h"
#include "webrtc/modules/desktop_capture/win/d3d_device.h"
+#include "webrtc/modules/desktop_capture/win/dxgi_context.h"
#include "webrtc/modules/desktop_capture/win/dxgi_texture.h"
namespace webrtc {
@@ -34,12 +35,7 @@ namespace webrtc {
// video card. None of functions in this class is thread-safe.
class DxgiOutputDuplicator {
public:
- struct Context {
- // The updated region DxgiOutputDuplicator::DetectUpdatedRegion() output
- // during last Duplicate() function call. It's always relative to the
- // (0, 0).
- DesktopRegion updated_region;
- };
+ using Context = DxgiOutputContext;
// Creates an instance of DxgiOutputDuplicator from a D3dDevice and one of its
// IDXGIOutput1. Caller must maintain the lifetime of device, to make sure it
« no previous file with comments | « webrtc/modules/desktop_capture/win/dxgi_frame.cc ('k') | webrtc/modules/desktop_capture/win/screen_capturer_win_directx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698