Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/gpu/ganesh/GrDirectContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1235,10 +1235,9 @@ sk_sp<GrDirectContext> GrDirectContext::MakeMetal(void* device, void* queue) {
// remove include/gpu/mtl/GrMtlBackendContext.h, above, when removed
sk_sp<GrDirectContext> GrDirectContext::MakeMetal(void* device, void* queue,
const GrContextOptions& options) {
sk_sp<GrDirectContext> direct(new GrDirectContext(GrBackendApi::kMetal, options));
GrMtlBackendContext backendContext = {};
backendContext.fDevice.reset(device);
backendContext.fQueue.reset(queue);
backendContext.fDevice.retain(device);
backendContext.fQueue.retain(queue);

return GrDirectContext::MakeMetal(backendContext, options);
}
Expand Down