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

Unified Diff: ui/android/delegated_frame_host_android.cc

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: ui/android/delegated_frame_host_android.cc
diff --git a/ui/android/delegated_frame_host_android.cc b/ui/android/delegated_frame_host_android.cc
index 7b26124a754f11d4e1c73a84141e04bc62f8b2b8..7c06b2f4f099963aa8f5cac1448708bf6f216aa1 100644
--- a/ui/android/delegated_frame_host_android.cc
+++ b/ui/android/delegated_frame_host_android.cc
@@ -226,7 +226,7 @@ void DelegatedFrameHostAndroid::UpdateContainerSizeinDIP(
void DelegatedFrameHostAndroid::RegisterFrameSinkHierarchy(
const cc::FrameSinkId& parent_id) {
- if (!registered_parent_frame_sink_id_.is_null())
+ if (registered_parent_frame_sink_id_.is_valid())
UnregisterFrameSinkHierarchy();
registered_parent_frame_sink_id_ = parent_id;
surface_manager_->RegisterSurfaceFactoryClient(frame_sink_id_, this);
@@ -234,7 +234,7 @@ void DelegatedFrameHostAndroid::RegisterFrameSinkHierarchy(
}
void DelegatedFrameHostAndroid::UnregisterFrameSinkHierarchy() {
- if (registered_parent_frame_sink_id_.is_null())
+ if (!registered_parent_frame_sink_id_.is_valid())
return;
surface_manager_->UnregisterSurfaceFactoryClient(frame_sink_id_);
surface_manager_->UnregisterFrameSinkHierarchy(

Powered by Google App Engine
This is Rietveld 408576698