[CodeHealth] Add a reason for RAW_PTR_EXCLUSION in openxr_view_configuration.h
Bug: 346693320 Change-Id: I801bde8891ad579204d93497740f92283700e0d4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6302337 Reviewed-by: Brandon Jones <bajones@chromium.org> Commit-Queue: Oksana Zhuravlova <oksamyt@chromium.org> Cr-Commit-Position: refs/heads/main@{#1424766}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
8c94445172
commit
c2eca85bfc
@ -168,8 +168,8 @@ class OpenXrLayers {
|
||||
// support a single projection layer. XrCompositionLayerBaseHeader* is needed
|
||||
// because xrEndFrame expects an array containing pointers of all the layers.
|
||||
XrCompositionLayerProjection primary_projection_layer_;
|
||||
// This field is not a raw_ptr<> because it was filtered by the rewriter for:
|
||||
// #addr-of
|
||||
|
||||
// RAW_PTR_EXCLUSION: #addr-of (address returned from a function)
|
||||
RAW_PTR_EXCLUSION XrCompositionLayerBaseHeader* primary_composition_layer_ =
|
||||
reinterpret_cast<XrCompositionLayerBaseHeader*>(
|
||||
&primary_projection_layer_);
|
||||
|
Reference in New Issue
Block a user