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

Unified Diff: cc/output/direct_renderer.cc

Issue 1304303002: Mac Overlays: Add sandwich strategy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@overlay_debug
Patch Set: Ready for pre-review Created 5 years, 4 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
« no previous file with comments | « cc/cc.gyp ('k') | cc/output/gl_renderer.cc » ('j') | cc/output/gl_renderer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/direct_renderer.cc
diff --git a/cc/output/direct_renderer.cc b/cc/output/direct_renderer.cc
index 7ceaa00379f15a96de8b2afcad91ac6367c1a040..90708af07b0ef835514a83871616b7bd8ace71d7 100644
--- a/cc/output/direct_renderer.cc
+++ b/cc/output/direct_renderer.cc
@@ -224,8 +224,10 @@ void DirectRenderer::DrawFrame(RenderPassList* render_passes_in_draw_order,
// If we have any copy requests, we can't remove any quads for overlays,
// otherwise the framebuffer will be missing the overlay contents.
if (root_render_pass->copy_requests.empty()) {
- overlay_processor_->ProcessForOverlays(render_passes_in_draw_order,
- &frame.overlay_list);
+ OverlayProcessor::RendererState renderer_state;
+ renderer_state.device_scale_factor = device_scale_factor;
+ overlay_processor_->ProcessForOverlays(
+ renderer_state, render_passes_in_draw_order, &frame.overlay_list);
}
for (size_t i = 0; i < render_passes_in_draw_order->size(); ++i) {
« no previous file with comments | « cc/cc.gyp ('k') | cc/output/gl_renderer.cc » ('j') | cc/output/gl_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698