Commit 17570fcc authored by sotaro's avatar sotaro
Browse files

Bug 1744868 - Remove KeepAlive r=gfx-reviewers,lsalzman

parent aae95e46
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -68,7 +68,6 @@ class ITextureClientRecycleAllocator;
class TextureClientPool;
#endif
class TextureForwarder;
class KeepAlive;

/**
 * TextureClient is the abstraction that allows us to share data between the
@@ -797,20 +796,6 @@ class MOZ_RAII TextureClientAutoLock {
  bool mSucceeded;
};

class KeepAlive {
 public:
  virtual ~KeepAlive() = default;
};

template <typename T>
class TKeepAlive : public KeepAlive {
 public:
  explicit TKeepAlive(T* aData) : mData(aData) {}

 protected:
  RefPtr<T> mData;
};

/// Convenience function to set the content of ycbcr texture.
bool UpdateYCbCrTextureClient(TextureClient* aTexture,
                              const PlanarYCbCrData& aData);