ShapeDetection: Simplify the usage of AsyncOperation on windows 10
Since this operation is not cancellable, it's better to guarantee that |AsyncCallbackInternal| will be called instead of canceling, but |callback_| still need to take weak reference count so that it will not be run if its object has been already destroyed. This would simplify callers since they would not need to own the result returned by Create. BUG=790843 Cq-Include-Trybots: master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win10_chromium_x64_rel_ng Change-Id: I640cbe769c999ef20d6b9310038023c4fd3d7714 Reviewed-on: https://chromium-review.googlesource.com/968121Reviewed-by:Reilly Grant <reillyg@chromium.org> Reviewed-by:
Miguel Casas <mcasas@chromium.org> Commit-Queue: Junwei Fu <junwei.fu@intel.com> Cr-Commit-Position: refs/heads/master@{#545688}
Showing
Please register or sign in to comment