Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: cc/output/direct_renderer.cc

Issue 2881483002: Always set damage rect to output rect if 3D context was reshaped. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/output/direct_renderer.cc
diff --git a/cc/output/direct_renderer.cc b/cc/output/direct_renderer.cc
index 19c0e4ab7ed6e054300ae4ae83e7a62e014fcc85..8af1cbe119e66f383438838423f5c6f7ad5a4231 100644
--- a/cc/output/direct_renderer.cc
+++ b/cc/output/direct_renderer.cc
@@ -267,6 +267,7 @@ void DirectRenderer::DrawFrame(RenderPassList* render_passes_in_draw_order,
bool frame_has_alpha =
current_frame()->root_render_pass->has_transparent_background;
bool use_stencil = overdraw_feedback_;
+ bool was_reshaped = false;
if (device_viewport_size != reshape_surface_size_ ||
device_scale_factor != reshape_device_scale_factor_ ||
root_render_pass->color_space != reshape_device_color_space_ ||
@@ -281,6 +282,7 @@ void DirectRenderer::DrawFrame(RenderPassList* render_passes_in_draw_order,
output_surface_->Reshape(
reshape_surface_size_, reshape_device_scale_factor_,
reshape_device_color_space_, reshape_has_alpha_, reshape_use_stencil_);
+ was_reshaped = true;
ccameron 2017/05/11 08:49:17 Would it be easier call something like overlay_p
}
BeginDrawingFrame();
@@ -315,7 +317,7 @@ void DirectRenderer::DrawFrame(RenderPassList* render_passes_in_draw_order,
// Attempt to replace some or all of the quads of the root render pass with
// overlays.
overlay_processor_->ProcessForOverlays(
- resource_provider_, root_render_pass, render_pass_filters_,
+ resource_provider_, root_render_pass, was_reshaped, render_pass_filters_,
render_pass_background_filters_, &current_frame()->overlay_list,
&current_frame()->ca_layer_overlay_list,
&current_frame()->dc_layer_overlay_list,

Powered by Google App Engine
This is Rietveld 408576698