Bug 1351480 - Update calls to add_image to include the ImageData::External wrapper. r=Jerry

MozReview-Commit-ID: 7C1qXLtqCbG
This commit is contained in:
Kartikaya Gupta 2017-04-04 22:46:31 -04:00
Родитель 7ef76c0e9d
Коммит 7490c35078
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -809,7 +809,10 @@ pub extern "C" fn wr_api_add_external_image_handle(api: &mut RenderApi,
assert!(unsafe { is_in_compositor_thread() });
api.add_image(image_key,
descriptor.to_descriptor(),
ImageData::ExternalHandle(ExternalImageId(external_image_id)),
ImageData::External(ExternalImageData {
id: ExternalImageId(external_image_id),
image_type: ExternalImageType::Texture2DHandle
}),
None);
}
@ -821,7 +824,10 @@ pub extern "C" fn wr_api_add_external_image_buffer(api: &mut RenderApi,
assert!(unsafe { is_in_compositor_thread() });
api.add_image(image_key,
descriptor.to_descriptor(),
ImageData::ExternalBuffer(ExternalImageId(external_image_id)),
ImageData::External(ExternalImageData {
id: ExternalImageId(external_image_id),
image_type: ExternalImageType::ExternalBuffer
}),
None);
}