From ec51a006fe52939a6dd710d6d3495bb1b248b7e2 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Sat, 21 Nov 2020 07:51:39 -0800 Subject: [PATCH] Make AndroidContext::IsValid virtual (flutter/engine#22665) Fixes https://github.com/flutter/flutter/issues/70938 --- engine/src/flutter/shell/platform/android/android_context_gl.h | 2 +- .../flutter/shell/platform/android/context/android_context.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/shell/platform/android/android_context_gl.h b/engine/src/flutter/shell/platform/android/android_context_gl.h index 20710a83722..73a177dccdc 100644 --- a/engine/src/flutter/shell/platform/android/android_context_gl.h +++ b/engine/src/flutter/shell/platform/android/android_context_gl.h @@ -103,7 +103,7 @@ class AndroidContextGL : public AndroidContext { /// @return Whether the current context is valid. That is, if the EGL /// contexts were successfully created. /// - bool IsValid() const; + bool IsValid() const override; //---------------------------------------------------------------------------- /// @return Whether the current context was successfully clear. diff --git a/engine/src/flutter/shell/platform/android/context/android_context.h b/engine/src/flutter/shell/platform/android/context/android_context.h index 77586e0fbb3..3412c0182e3 100644 --- a/engine/src/flutter/shell/platform/android/context/android_context.h +++ b/engine/src/flutter/shell/platform/android/context/android_context.h @@ -26,7 +26,7 @@ class AndroidContext { AndroidRenderingAPI RenderingApi() const; - bool IsValid() const; + virtual bool IsValid() const; private: const AndroidRenderingAPI rendering_api_;