Skip to content

Commit

Permalink
Use skia.mojom.BitmapN32 in VR service mojoms
Browse files Browse the repository at this point in the history
These bitmaps are safer for transport from untrustworthy sources since
all bitmaps should be in N32 format and the browser can make bad
assumptions as a result.

R=dcheng@chromium.org

Bug: 1144462
Change-Id: I6e88c4e333587614083ed8213533241a09ee63f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2575446
Auto-Submit: danakj <danakj@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#833956}
  • Loading branch information
danakj authored and Chromium LUCI CQ committed Dec 5, 2020
1 parent 3bd533b commit b0d629e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion device/vr/public/mojom/vr_service.mojom
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ enum XRInteractionMode {
};

struct XRTrackedImage {
skia.mojom.BitmapWithArbitraryBpp bitmap;
skia.mojom.BitmapN32 bitmap;
gfx.mojom.Size size_in_pixels;
float width_in_meters;
};
Expand Down

0 comments on commit b0d629e

Please sign in to comment.