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

Unified Diff: webrtc/modules/desktop_capture/desktop_frame.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/desktop_frame.h
diff --git a/webrtc/modules/desktop_capture/desktop_frame.h b/webrtc/modules/desktop_capture/desktop_frame.h
index 632bcfc2e793ebf5cb4f5d6db36a082bf9dfde47..95c74c57fb6ada803e5485bf9f77c8e63d296026 100644
--- a/webrtc/modules/desktop_capture/desktop_frame.h
+++ b/webrtc/modules/desktop_capture/desktop_frame.h
@@ -68,6 +68,9 @@ class DesktopFrame {
// A helper to return the data pointer of a frame at the specified position.
uint8_t* GetFrameDataAtPos(const DesktopVector& pos) const;
+ // A helper to return the position at the specified data pointer.
+ DesktopVector GetPosAtFrameData(const uint8_t* const pos) const;
Jamie 2016/08/26 22:29:09 You don't seem to be using this.
Hzj_jie 2016/08/29 21:57:28 Done.
+
protected:
DesktopFrame(DesktopSize size,
int stride,

Powered by Google App Engine
This is Rietveld 408576698