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

Unified Diff: cc/surfaces/local_surface_id.h

Issue 2676373004: Implement service-side surface synchronization (Closed)
Patch Set: Better unit test name Created 3 years, 10 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_surface_id.h
diff --git a/cc/surfaces/local_surface_id.h b/cc/surfaces/local_surface_id.h
index ef8be591a97822e7885290ebbe2e095fa2e7855e..138bfa644d59ecbcd64306b3d1b44010dffca0e6 100644
--- a/cc/surfaces/local_surface_id.h
+++ b/cc/surfaces/local_surface_id.h
@@ -53,6 +53,7 @@ class LocalSurfaceId {
}
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