From 33485e47de832351f98b499c5e3395394e9edd82 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Tue, 14 Aug 2018 22:20:05 -0700 Subject: [PATCH] Fix Android Vulkan builds to account for resource context management API updates. (flutter/engine#6020) --- .../flutter/shell/platform/android/android_surface_vulkan.cc | 2 ++ .../flutter/shell/platform/android/android_surface_vulkan.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/engine/src/flutter/shell/platform/android/android_surface_vulkan.cc b/engine/src/flutter/shell/platform/android/android_surface_vulkan.cc index f040f19d2c..05848f0427 100644 --- a/engine/src/flutter/shell/platform/android/android_surface_vulkan.cc +++ b/engine/src/flutter/shell/platform/android/android_surface_vulkan.cc @@ -65,7 +65,9 @@ bool AndroidSurfaceVulkan::ResourceContextMakeCurrent() { return false; } +// |shell::AndroidSurface| bool AndroidSurfaceVulkan::ResourceContextClearCurrent() { + FML_DLOG(ERROR) << "The vulkan backend does not support resource contexts."; return false; } diff --git a/engine/src/flutter/shell/platform/android/android_surface_vulkan.h b/engine/src/flutter/shell/platform/android/android_surface_vulkan.h index 79d83b57c6..3bec57febc 100644 --- a/engine/src/flutter/shell/platform/android/android_surface_vulkan.h +++ b/engine/src/flutter/shell/platform/android/android_surface_vulkan.h @@ -35,6 +35,9 @@ class AndroidSurfaceVulkan : public AndroidSurface { // |shell::AndroidSurface| bool ResourceContextMakeCurrent() override; + // |shell::AndroidSurface| + bool ResourceContextClearCurrent() override; + // |shell::AndroidSurface| bool SetNativeWindow(fml::RefPtr window) override;