| Auto-Submit | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
lgtm % nit, thanks.
// Note that there are only 2 backings which currently has pixmaps,i.e.,nit: The purpose of this function is to get NativePixmap for overlay testing, so it needs be the same NativePixmap that we would later get from the ProduceOverlay representation (otherwise test might pass, but real commit fail).
Can we just get backing for overlay stream here?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +2 |
// Note that there are only 2 backings which currently has pixmaps,i.e.,nit: The purpose of this function is to get NativePixmap for overlay testing, so it needs be the same NativePixmap that we would later get from the ProduceOverlay representation (otherwise test might pass, but real commit fail).
Can we just get backing for overlay stream here?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
1 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: gpu/command_buffer/service/shared_image/compound_image_backing.cc
Insertions: 6, Deletions: 12.
@@ -946,19 +946,13 @@
}
scoped_refptr<gfx::NativePixmap> CompoundImageBacking::GetNativePixmap() {
- // Note that there are only 2 backings which currently has pixmaps,i.e.,
- // OzoneImageBacking and ExternalVkImageBacking. Currently
- // CompoundImageBacking only allocates 1 gpu backing at max. So only one of
- // them will be ever allocated.
- // TODO(crbug.com/448962784): In future with DCSI, multiple backings of
- // different types can be allocated. If there are multiple backing which
- // supports GetNativePixmap(), then we will need to update this code to get
- // the pixmap from the correct backing.
+ // The purpose of this function is to get NativePixmap for overlay testing,
+ // so it needs be the same NativePixmap that we would later get from the
+ // ProduceOverlay representation. Hence using Overlay stream backing here.
for (const auto& element : elements_) {
- if (element.backing) {
- if (auto pixmap = element.backing->GetNativePixmap()) {
- return pixmap;
- }
+ if (element.access_streams.Has(SharedImageAccessStream::kOverlay) &&
+ element.backing) {
+ return element.backing->GetNativePixmap();
}
}
return nullptr;
```
[DCSI] Implement CompoundImagebacking::GetNativePixmap().
Implement CompoundImagebacking::GetNativePixmap(). This iterates over
all the underlying backings and returns a valid pixmap if any.
It is needed to support future architecture where CompoundImageBacking
will wrap one or more underlying backings and be the primary backing
itself.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |