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

Unified Diff: services/ui/ws/server_window_surface.h

Issue 2425923003: Replaced is_null() with is_valid in SurfaceId and related classes. (Closed)
Patch Set: Removed added printf statements; LocalFrameId::is_valid() no longer checks if nonce is 0. Created 4 years, 2 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: services/ui/ws/server_window_surface.h
diff --git a/services/ui/ws/server_window_surface.h b/services/ui/ws/server_window_surface.h
index 1a606c250652357e3b24fba444f34ffc77a389f3..c1d89e838551a7c94e73cac0dbfe31d468073028 100644
--- a/services/ui/ws/server_window_surface.h
+++ b/services/ui/ws/server_window_surface.h
@@ -63,7 +63,7 @@ class ServerWindowSurface : public mojom::Surface,
// the same size and device scale factor.
const cc::LocalFrameId& local_frame_id() const { return local_frame_id_; }
- bool has_frame() const { return !local_frame_id_.is_null(); }
+ bool has_frame() const { return local_frame_id_.is_valid(); }
cc::SurfaceId GetSurfaceId() const;

Powered by Google App Engine
This is Rietveld 408576698