Bug 1256693 - Refer to ClientIPCAllocator instead of ISurfaceAllocator where it makes sense. r=sotaro

This commit is contained in:
Nicolas Silva
2016-03-21 15:18:20 +01:00
parent 329b5544c1
commit 000ef2da39
39 changed files with 141 additions and 142 deletions

View File

@@ -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,