From c572f4207db197934b5312db2bfdbea06384738d Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Tue, 14 Aug 2018 22:03:52 -0700 Subject: [PATCH] Fix Android Vulkan builds to account for resource context management API updates. --- shell/platform/android/android_surface_vulkan.cc | 2 ++ shell/platform/android/android_surface_vulkan.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/shell/platform/android/android_surface_vulkan.cc b/shell/platform/android/android_surface_vulkan.cc index f040f19d2ccfc..05848f042715c 100644 --- a/shell/platform/android/android_surface_vulkan.cc +++ b/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/shell/platform/android/android_surface_vulkan.h b/shell/platform/android/android_surface_vulkan.h index 79d83b57c63a2..3bec57febc502 100644 --- a/shell/platform/android/android_surface_vulkan.h +++ b/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;