Bug 1248923 - Store result in Update ParamTraits<GonkNativeHandle>::Read() r=nical
authorSotaro Ikeda <sotaro.ikeda.g@gmail.com>
Sun, 21 Feb 2016 16:44:50 -0800
changeset 321350 7f6575cf223e174ce396a97115deabfa029bf51b
parent 321349 6183d3a293a98ef1313fd57bbbdafcee0783b29f
child 321351 85c911ca1bb8727f14e4f90f80db1bfc76509db8
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs1248923
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1248923 - Store result in Update ParamTraits<GonkNativeHandle>::Read() r=nical
gfx/layers/ipc/GonkNativeHandleUtils.cpp
--- a/gfx/layers/ipc/GonkNativeHandleUtils.cpp
+++ b/gfx/layers/ipc/GonkNativeHandleUtils.cpp
@@ -57,12 +57,15 @@ ParamTraits<GonkNativeHandle>::Read(cons
   for (size_t i = 0; i < static_cast<size_t>(nativeHandle->numFds); ++i) {
     base::FileDescriptor fd;
     if (!aMsg->ReadFileDescriptor(aIter, &fd)) {
       return false;
     }
     nativeHandle->data[i] = fd.fd;
   }
 
+  GonkNativeHandle handle(new GonkNativeHandle::NhObj(nativeHandle));
+  handle.TransferToAnother(*aResult);
+
   return true;
 }
 
 } // namespace IPC