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

Unified Diff: media/capture/content/thread_safe_capture_oracle.h

Issue 1941523002: Aura Window Capture: Ensure capture callback is always run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 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: media/capture/content/thread_safe_capture_oracle.h
diff --git a/media/capture/content/thread_safe_capture_oracle.h b/media/capture/content/thread_safe_capture_oracle.h
index 5e3283a79b147877c0f823d0130839a749692238..0850a964279f4c807245bee7e196658475937a70 100644
--- a/media/capture/content/thread_safe_capture_oracle.h
+++ b/media/capture/content/thread_safe_capture_oracle.h
@@ -48,9 +48,10 @@ class MEDIA_EXPORT ThreadSafeCaptureOracle
// resources.
//
// If this method returns false, the caller should take no further action.
- // Otherwise, |storage| is set to the destination for the video frame capture;
- // and, the caller should initiate capture, and then run |callback| once the
- // video frame has been populated with its content.
+ // Otherwise, |storage| is set to the destination for the video frame capture
+ // and the caller should initiate capture. Then, once the video frame has
+ // been populated with its content, or if capture failed, the |callback|
+ // should be run.
bool ObserveEventAndDecideCapture(VideoCaptureOracle::Event event,
const gfx::Rect& damage_rect,
base::TimeTicks event_time,
« no previous file with comments | « content/browser/media/capture/aura_window_capture_machine.cc ('k') | media/capture/content/thread_safe_capture_oracle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698