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

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

Issue 2268093002: [WebRTC] A real ScreenCapturer test (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Resolve review comments Created 4 years, 4 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_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..7b5e4c06c0abd4103e39d98c70421fd3ac9a2050 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 DxgiOutputDuplicators
+ // 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_; }

Powered by Google App Engine
This is Rietveld 408576698