Closed Bug 1053882 Opened 10 years ago Closed 10 years ago

Remove GrallocTextureHostOGL::ForgetSharedData()

Categories

(Core :: Graphics: Layers, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: sotaro, Unassigned)

Details

Attachments

(1 file)

GrallocTextureHostOGL::ForgetSharedData() is not necessary for gralloc buffer.

ForgetSharedData() needs to be implemented when there is a case that an actual buffer needs to be deleted by client side since TextureHost is created. gralloc buffer does not have such necessity.
(In reply to Sotaro Ikeda [:sotaro] from comment #0)
> GrallocTextureHostOGL::ForgetSharedData() is not necessary for gralloc
> buffer.
> 
> ForgetSharedData() needs to be implemented when there is a case that an
> actual buffer needs to be deleted by client side since TextureHost is
> created. gralloc buffer does not have such necessity.

"gralloc buffer does not have such necessity." paret was wrong.
When TextureFlags::DEALLOCATE_CLIENT flag is set, gralloc texture release is triggered from client side. But there is still no necessity to implement ForgetSharedData().
I changed my mind. It seems better not to remove ForgetSharedData(). Instead, it seems better to implement it correctly. current implementation is not correct.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: