media/gpu/ip: DCHECK for proper output mode in Process() methods

The ImageProcessor methods are now each confined to a given output mode:
the legacy Process(input_frame) is for ALLOCATE mode, while
Process(input_frame, output_frame) is for IMPORT mode. Ensure that these
methods are never called from the incorrect mode with a DCHECK.

Bug: None
Test: VDA unittest passed in regular and import mode on Hana.
Test: VEA unittest passed on Peach_pit.
Change-Id: I1c99dce1407ebc719c8b85bc1d9d1f3fea886e02
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1525765
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#643278}
1 file changed