Skip to content

Remove Usage of CreateHeapFn in MVI #669

@bjjones

Description

@bjjones

Chromium doesn't allow usage of std::function, which is what the CreateHeapFn is defined as.

I see two options:

  1. Keep this as a callback and take a dependency on chromium base::OnceCallback.
  2. Get rid of the callback param and inline the code in some manner, probably will add a ResourceAllocator::CreateCommittedResource function and call it.

2 is my preferred option since we don't have any other possible values for CreateHeapFn right now. This will probably mean some code duplication in the future when adding other methods of heap creation (I think this is what's in Dawn).

@egalli
@bbernhar - I'm not sure how much autonomy you're giving me over GPGMM issues while you're on loan. I'm assuming you'll want to have high level input until you tell me otherwise.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions