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

Unified Diff: ui/aura/mus/window_port_mus.cc

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 | « ui/android/delegated_frame_host_android.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_port_mus.cc
diff --git a/ui/aura/mus/window_port_mus.cc b/ui/aura/mus/window_port_mus.cc
index 5aec2713d03a3a71fed0042cbb2c616e750dc54d..f9be96b4993e306a1c3279e09516fa76bafe0070 100644
--- a/ui/aura/mus/window_port_mus.cc
+++ b/ui/aura/mus/window_port_mus.cc
@@ -221,7 +221,7 @@ void WindowPortMus::SetSurfaceIdFromServer(
const cc::SurfaceId& existing_surface_id = surface_info_->surface_id;
cc::SurfaceId new_surface_id =
surface_info ? surface_info->surface_id : cc::SurfaceId();
- if (!existing_surface_id.is_null() &&
+ if (existing_surface_id.is_valid() &&
existing_surface_id != new_surface_id) {
// TODO(kylechar): Start return reference here?
}
« no previous file with comments | « ui/android/delegated_frame_host_android.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698