OSDN Git Service

Remove unused member in VulkanManager.
authorGreg Daniel <egdaniel@google.com>
Fri, 22 Jun 2018 14:44:26 +0000 (10:44 -0400)
committerGreg Daniel <egdaniel@google.com>
Fri, 22 Jun 2018 15:46:18 +0000 (11:46 -0400)
A large part of the previous change was specifically around removing
this ref counted data member, and then I just forgot to delete it...

Test: manual testing

Change-Id: Ie9a7f7495789d45a65900c08a27a9d83ad64617c

libs/hwui/renderthread/VulkanManager.h

index 2a1b36f..9a72706 100644 (file)
@@ -79,7 +79,7 @@ public:
     void initialize();
 
     // Quick check to see if the VulkanManager has been initialized.
-    bool hasVkContext() { return mBackendContext.get() != nullptr; }
+    bool hasVkContext() { return mDevice != VK_NULL_HANDLE; }
 
     // Given a window this creates a new VkSurfaceKHR and VkSwapchain and stores them inside a new
     // VulkanSurface object which is returned.
@@ -188,8 +188,6 @@ private:
 
     RenderThread& mRenderThread;
 
-    sk_sp<const GrVkBackendContext> mBackendContext;
-
     VkInstance mInstance = VK_NULL_HANDLE;
     VkPhysicalDevice mPhysicalDevice = VK_NULL_HANDLE;
     VkDevice mDevice = VK_NULL_HANDLE;