| Index: ppapi/proxy/ppb_image_data_proxy.cc
|
| diff --git a/ppapi/proxy/ppb_image_data_proxy.cc b/ppapi/proxy/ppb_image_data_proxy.cc
|
| index 51751668f228dd9fef77218feabfcf55010eef47..4ed4442ceb4c4a8512f6cd6032c54190153df73f 100644
|
| --- a/ppapi/proxy/ppb_image_data_proxy.cc
|
| +++ b/ppapi/proxy/ppb_image_data_proxy.cc
|
| @@ -494,9 +494,7 @@ PP_Resource PPB_ImageData_Proxy::CreateProxyResource(
|
| }
|
|
|
| HostResource result;
|
| - // Initialize desc so we don't send unitialized memory over IPC.
|
| - // https://crbug.com/391023.
|
| - PP_ImageDataDesc desc = {};
|
| + PP_ImageDataDesc desc;
|
| switch (type) {
|
| case PPB_ImageData_Shared::SIMPLE: {
|
| ppapi::proxy::SerializedHandle image_handle_wrapper;
|
| @@ -622,6 +620,9 @@ void PPB_ImageData_Proxy::OnHostMsgCreatePlatform(
|
| HostResource* result,
|
| PP_ImageDataDesc* desc,
|
| ImageHandle* result_image_handle) {
|
| + // Clear |desc| so we don't send unitialized memory to the plugin.
|
| + // https://crbug.com/391023.
|
| + *desc = PP_ImageDataDesc();
|
| IPC::PlatformFileForTransit image_handle;
|
| uint32_t byte_count;
|
| PP_Resource resource =
|
| @@ -647,6 +648,9 @@ void PPB_ImageData_Proxy::OnHostMsgCreateSimple(
|
| HostResource* result,
|
| PP_ImageDataDesc* desc,
|
| ppapi::proxy::SerializedHandle* result_image_handle) {
|
| + // Clear |desc| so we don't send unitialized memory to the plugin.
|
| + // https://crbug.com/391023.
|
| + *desc = PP_ImageDataDesc();
|
| IPC::PlatformFileForTransit image_handle;
|
| uint32_t byte_count;
|
| PP_Resource resource =
|
|
|