Bug 1256693 - Refer to ClientIPCAllocator instead of ISurfaceAllocator where it makes sense. r=sotaro
This commit is contained in:
@@ -26,7 +26,7 @@ public:
|
||||
|
||||
static already_AddRefed<TextureClient>
|
||||
CreateTextureClient(EGLImageImage* aImage, gfx::IntSize aSize,
|
||||
ISurfaceAllocator* aAllocator, TextureFlags aFlags);
|
||||
ClientIPCAllocator* aAllocator, TextureFlags aFlags);
|
||||
|
||||
virtual bool HasIntermediateBuffer() const override { return false; }
|
||||
|
||||
@@ -34,9 +34,9 @@ public:
|
||||
|
||||
virtual bool Serialize(SurfaceDescriptor& aOutDescriptor) override;
|
||||
|
||||
virtual void Deallocate(ISurfaceAllocator*) override { mImage = nullptr; }
|
||||
virtual void Deallocate(ClientIPCAllocator*) override { mImage = nullptr; }
|
||||
|
||||
virtual void Forget(ISurfaceAllocator*) override { mImage = nullptr; }
|
||||
virtual void Forget(ClientIPCAllocator*) override { mImage = nullptr; }
|
||||
|
||||
// Unused functions.
|
||||
virtual bool Lock(OpenMode, FenceHandle*) override { return true; }
|
||||
@@ -64,7 +64,7 @@ public:
|
||||
CreateTextureClient(gl::AndroidSurfaceTexture* aSurfTex,
|
||||
gfx::IntSize aSize,
|
||||
gl::OriginPos aOriginPos,
|
||||
ISurfaceAllocator* aAllocator,
|
||||
ClientIPCAllocator* aAllocator,
|
||||
TextureFlags aFlags);
|
||||
|
||||
~AndroidSurfaceTextureData();
|
||||
@@ -86,7 +86,7 @@ public:
|
||||
}
|
||||
|
||||
// Our data is always owned externally.
|
||||
virtual void Deallocate(ISurfaceAllocator*) override {}
|
||||
virtual void Deallocate(ClientIPCAllocator*) override {}
|
||||
|
||||
protected:
|
||||
AndroidSurfaceTextureData(gl::AndroidSurfaceTexture* aSurfTex,
|
||||
|
||||
Reference in New Issue
Block a user