gfxstream: Make nameOpt protected am: e0a7019da8

Original change: https://android-review.googlesource.com/c/platform/hardware/google/aemu/+/2743940

Change-Id: Iaed80a8ccb47d625190baaf33e12aceb4771ed41
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
GitOrigin-RevId: 6185b2fdfacb2777832b920bcecea3cb29ab413e
diff --git a/base/include/aemu/base/threads/Thread.h b/base/include/aemu/base/threads/Thread.h
index a725c6b..8f42c34 100644
--- a/base/include/aemu/base/threads/Thread.h
+++ b/base/include/aemu/base/threads/Thread.h
@@ -109,6 +109,9 @@
     // thread that's ready to run.
     static void yield();
 
+protected:
+    std::optional<std::string> mNameOpt = std::nullopt;
+
 private:
 #ifdef _WIN32
     static DWORD WINAPI thread_main(void* arg);
@@ -127,7 +130,6 @@
     bool mStarted = false;
     // Access guarded by |mLock|.
     bool mFinished = false;
-    std::optional<std::string> mNameOpt = std::nullopt;
 #ifndef _WIN32
     // Posix-only, remember if we've joined our non-detached thread already.
     bool mJoined = false;