Bug 1954416 - Change NativeSurface::dimensions in Renderer::composite_simple() as to use frame.device_rect.size() r=gfx-reviewers,lsalzman
With the change, the glitch was addressed. Differential Revision: https://phabricator.services.mozilla.com/D246881
This commit is contained in:
@@ -3516,6 +3516,7 @@ impl Renderer {
|
|||||||
fn composite_simple(
|
fn composite_simple(
|
||||||
&mut self,
|
&mut self,
|
||||||
composite_state: &CompositeState,
|
composite_state: &CompositeState,
|
||||||
|
frame_device_size: DeviceIntSize,
|
||||||
fb_draw_target: DrawTarget,
|
fb_draw_target: DrawTarget,
|
||||||
projection: &default::Transform3D<f32>,
|
projection: &default::Transform3D<f32>,
|
||||||
results: &mut RenderResults,
|
results: &mut RenderResults,
|
||||||
@@ -3822,7 +3823,7 @@ impl Renderer {
|
|||||||
DrawTarget::NativeSurface {
|
DrawTarget::NativeSurface {
|
||||||
offset: -layer.offset,
|
offset: -layer.offset,
|
||||||
external_fbo_id: 0,
|
external_fbo_id: 0,
|
||||||
dimensions: fb_draw_target.dimensions(),
|
dimensions: frame_device_size,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Native can be hit when switching compositors (disable when using Layer)
|
// Native can be hit when switching compositors (disable when using Layer)
|
||||||
@@ -5134,6 +5135,7 @@ impl Renderer {
|
|||||||
CompositorKind::Draw { .. } | CompositorKind::Layer { .. } => {
|
CompositorKind::Draw { .. } | CompositorKind::Layer { .. } => {
|
||||||
self.composite_simple(
|
self.composite_simple(
|
||||||
&frame.composite_state,
|
&frame.composite_state,
|
||||||
|
frame.device_rect.size(),
|
||||||
draw_target,
|
draw_target,
|
||||||
&projection,
|
&projection,
|
||||||
results,
|
results,
|
||||||
|
|||||||
Reference in New Issue
Block a user