aboutsummaryrefslogtreecommitdiff
path: root/cast/streaming/resolution.h
diff options
context:
space:
mode:
Diffstat (limited to 'cast/streaming/resolution.h')
-rw-r--r--cast/streaming/resolution.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cast/streaming/resolution.h b/cast/streaming/resolution.h
index ba370820..47815556 100644
--- a/cast/streaming/resolution.h
+++ b/cast/streaming/resolution.h
@@ -23,6 +23,10 @@ struct Resolution {
bool IsValid() const;
Json::Value ToJson() const;
+ // Returns true if both |width| and |height| of this instance are greater than
+ // or equal to that of |other|.
+ bool IsSupersetOf(const Resolution& other) const;
+
bool operator==(const Resolution& other) const;
bool operator!=(const Resolution& other) const;
@@ -37,6 +41,10 @@ struct Dimensions {
bool IsValid() const;
Json::Value ToJson() const;
+ // Returns true if all properties of this instance are greater than or equal
+ // to those of |other|.
+ bool IsSupersetOf(const Dimensions& other) const;
+
bool operator==(const Dimensions& other) const;
bool operator!=(const Dimensions& other) const;