Fix vulkan build
authoregdaniel <egdaniel@google.com>
Fri, 29 Jul 2016 18:47:58 +0000 (11:47 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 29 Jul 2016 18:47:58 +0000 (11:47 -0700)
TBR=bsalomon@google.com
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2193883002

Review-Url: https://codereview.chromium.org/2193883002

src/gpu/vk/GrVkBuffer.h
src/gpu/vk/GrVkUniformBuffer.h

index bb529b3f7366dda79a4ce34210ceca0bb9969fb4..473a837646efcb6a5ebcabdd2224d76ab26244e9 100644 (file)
@@ -20,7 +20,7 @@ class GrVkGpu;
  */
 class GrVkBuffer : public SkNoncopyable {
 public:
-    ~GrVkBuffer() {
+    virtual ~GrVkBuffer() {
         // either release or abandon should have been called by the owner of this object.
         SkASSERT(!fResource);
     }
index d2d9f3230c4c93cfd83f171e5c734edfb464221a..cfde125b3924dd5da2e6ba6e1694f0d08d99ad1f 100644 (file)
@@ -50,10 +50,7 @@ private:
 
     GrVkUniformBuffer(GrVkGpu* gpu, const GrVkBuffer::Desc& desc,
                       const GrVkUniformBuffer::Resource* resource)
-        : INHERITED(desc, resource)
-        , fGpu(gpu) {}
-
-    GrVkGpu* fGpu;
+        : INHERITED(desc, resource) {}
 
     typedef GrVkBuffer INHERITED;
 };