From 5ac4f2f8001c236a265770bfb3869a44317f2cd8 Mon Sep 17 00:00:00 2001 From: Sanjay Chouksey Date: Tue, 16 Jun 2020 11:23:39 -0700 Subject: [PATCH] Allow access to raw zircon handle (flutter/engine#19052) As part of migrating Fuchsia from legacy SceneHost/ChildView based code to Flutter Embedder based PlatformView, we need to expose the raw zircon handle. Since we are converting a private getter to public getter, this does not affect any existing code. Co-authored-by: Sanjay Chouksey --- .../platform/fuchsia/dart-pkg/zircon/lib/src/handle.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/src/flutter/shell/platform/fuchsia/dart-pkg/zircon/lib/src/handle.dart b/engine/src/flutter/shell/platform/fuchsia/dart-pkg/zircon/lib/src/handle.dart index ec5429c8e9..277afae0f7 100644 --- a/engine/src/flutter/shell/platform/fuchsia/dart-pkg/zircon/lib/src/handle.dart +++ b/engine/src/flutter/shell/platform/fuchsia/dart-pkg/zircon/lib/src/handle.dart @@ -20,17 +20,17 @@ class Handle extends NativeFieldWrapperClass2 { } static Handle _createInvalid() native 'Handle_CreateInvalid'; - int get _handle native 'Handle_handle'; + int get handle native 'Handle_handle'; @override - String toString() => 'Handle($_handle)'; + String toString() => 'Handle($handle)'; @override bool operator ==(Object other) => - (other is Handle) && (_handle == other._handle); + (other is Handle) && (handle == other.handle); @override - int get hashCode => _handle.hashCode; + int get hashCode => handle.hashCode; // Common handle operations. bool get isValid native 'Handle_is_valid';