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

Unified Diff: webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.h

Issue 2446733003: Update XServerPixelBuffer to handle errors returned from XGetImage(). (Closed)
Patch Set: Created 4 years, 2 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/x11/x_server_pixel_buffer.h
diff --git a/webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.h b/webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.h
index b202abb9bc005d488aba83ec09e56c9ef94126f0..2a177c4ff77a67a28c784ea0578a29e24977de7e 100644
--- a/webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.h
+++ b/webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.h
@@ -55,7 +55,7 @@ class XServerPixelBuffer {
// where the full-screen data is captured by Synchronize(), this simply
// returns the pointer without doing any more work. The caller must ensure
// that |rect| is not larger than window_size().
- void CaptureRect(const DesktopRect& rect, DesktopFrame* frame);
+ bool CaptureRect(const DesktopRect& rect, DesktopFrame* frame);
private:
void InitShm(const XWindowAttributes& attributes);
« no previous file with comments | « webrtc/modules/desktop_capture/window_capturer_x11.cc ('k') | webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698