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

Unified Diff: webrtc/api/mediastreaminterface.h

Issue 1842073002: Change VideoSourceInterface::needs_denoising() to return rtc::Optional<bool> (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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/api/rtpsender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/mediastreaminterface.h
diff --git a/webrtc/api/mediastreaminterface.h b/webrtc/api/mediastreaminterface.h
index 1ea094b71454aaa2ff337b49a4da9534d3bdc1f3..d2fe9ecee43e0770109a6e7b55449fab3e448e9b 100644
--- a/webrtc/api/mediastreaminterface.h
+++ b/webrtc/api/mediastreaminterface.h
@@ -23,6 +23,7 @@
#include "webrtc/base/basictypes.h"
#include "webrtc/base/refcount.h"
#include "webrtc/base/scoped_ref_ptr.h"
+#include "webrtc/base/optional.h"
#include "webrtc/media/base/mediachannel.h"
#include "webrtc/media/base/videosinkinterface.h"
#include "webrtc/media/base/videosourceinterface.h"
@@ -127,7 +128,7 @@ class VideoTrackSourceInterface
// Indicates that the encoder should denoise the video before encoding it.
// TODO(perkj): Remove this once denoising is done by the source, and not by
// the encoder.
- virtual bool needs_denoising() const = 0;
+ virtual rtc::Optional<bool> needs_denoising() const = 0;
pbos-webrtc 2016/03/31 14:30:08 Can we put a comment here on what unset means?
perkj_webrtc 2016/03/31 15:23:08 Done.
protected:
virtual ~VideoTrackSourceInterface() {}
« no previous file with comments | « no previous file | webrtc/api/rtpsender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698