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

Unified Diff: cc/surfaces/local_frame_id.h

Issue 2582823002: WIP: Surface Synchronization System
Patch Set: Only create ClientSurfaceEmbedder if window is visible. Trash it otherwise. Created 3 years, 11 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: cc/surfaces/local_frame_id.h
diff --git a/cc/surfaces/local_frame_id.h b/cc/surfaces/local_frame_id.h
index 7773b9646cbcf85c6cef9d6eaec0b7cf8ef628d1..49d1a4b9eb2c862a7dbf0081ccdc6efe65b07786 100644
--- a/cc/surfaces/local_frame_id.h
+++ b/cc/surfaces/local_frame_id.h
@@ -50,6 +50,7 @@ class LocalFrameId {
}
size_t hash() const {
+ DCHECK(is_valid()) << ToString();
return base::HashInts(
local_id_, static_cast<uint64_t>(base::UnguessableTokenHash()(nonce_)));
}

Powered by Google App Engine
This is Rietveld 408576698