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

Unified Diff: cc/surfaces/local_frame_id.h

Issue 2425923003: Replaced is_null() with is_valid in SurfaceId and related classes. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 | « cc/surfaces/frame_sink_id.h ('k') | cc/surfaces/surface_aggregator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/local_frame_id.h
diff --git a/cc/surfaces/local_frame_id.h b/cc/surfaces/local_frame_id.h
index 859e0070e8d339a92403860aa51afd371ac323cb..3c11b0d11072a7a7668789214f6e9ce5c5a707e3 100644
--- a/cc/surfaces/local_frame_id.h
+++ b/cc/surfaces/local_frame_id.h
@@ -23,7 +23,7 @@ class LocalFrameId {
constexpr LocalFrameId(uint32_t local_id, uint64_t nonce)
: local_id_(local_id), nonce_(nonce) {}
- constexpr bool is_null() const { return local_id_ == 0 && nonce_ == 0; }
+ constexpr bool is_valid() const { return local_id_ != 0 && nonce_ != 0; }
constexpr uint32_t local_id() const { return local_id_; }
« no previous file with comments | « cc/surfaces/frame_sink_id.h ('k') | cc/surfaces/surface_aggregator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698