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

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

Issue 2299663003: [WebRTC] Two DirectX capturers cannot work concurrently (Closed)
Patch Set: Sync latest changes Created 4 years, 3 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
« no previous file with comments | « no previous file | webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.h
diff --git a/webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.h b/webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.h
index be9fd17009782f1f3c9af6514eb1def0f42dbb93..a9e61035fa3d83cf59f84e82f55d04b2b581d1c3 100644
--- a/webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.h
+++ b/webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.h
@@ -15,9 +15,9 @@
#include <vector>
-#include "webrtc/modules/desktop_capture/desktop_frame.h"
#include "webrtc/modules/desktop_capture/desktop_geometry.h"
#include "webrtc/modules/desktop_capture/desktop_region.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_output_duplicator.h"
@@ -44,18 +44,15 @@ class DxgiAdapterDuplicator {
// Initializes the DxgiAdapterDuplicator from a D3dDevice.
bool Initialize();
- // Sequential calls Duplicate function of all the DxgiOutputDuplicators owned
- // by this instance.
- bool Duplicate(Context* context,
- const DesktopFrame* last_frame,
- DesktopFrame* target);
+ // Sequentially calls Duplicate function of all the DxgiOutputDuplicator
+ // instances owned by this instance, and writes into |target|.
+ bool Duplicate(Context* context, SharedDesktopFrame* target);
- // Captures one monitor and writes into target. |monitor_id| should be between
- // [0, screen_count()).
+ // Captures one monitor and writes into |target|. |monitor_id| should be
+ // between [0, screen_count()).
bool DuplicateMonitor(Context* context,
int monitor_id,
- const DesktopFrame* last_frame,
- DesktopFrame* target);
+ SharedDesktopFrame* target);
// Returns desktop rect covered by this DxgiAdapterDuplicator.
DesktopRect desktop_rect() const { return desktop_rect_; }
« no previous file with comments | « no previous file | webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698