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

Unified Diff: cc/trees/layer_tree_host_in_process.cc

Issue 2390923002: Fix blurry content after disabling dev tools emulation (Closed)
Patch Set: Add function for LayerTreeHostRemote Created 4 years, 2 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/trees/layer_tree_host_in_process.h ('k') | cc/trees/layer_tree_host_unittest_picture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_in_process.cc
diff --git a/cc/trees/layer_tree_host_in_process.cc b/cc/trees/layer_tree_host_in_process.cc
index 4cb7d1b8dda3cbf9a6139ebdc5ae8c3d9392e29f..f980b489a44074c12908f8d2316ed967c7d96084 100644
--- a/cc/trees/layer_tree_host_in_process.cc
+++ b/cc/trees/layer_tree_host_in_process.cc
@@ -214,7 +214,6 @@ LayerTreeHostInProcess::LayerTreeHostInProcess(
gpu_rasterization_histogram_recorded_(false),
did_complete_scale_animation_(false),
id_(s_layer_tree_host_sequence_number.GetNext() + 1),
- next_commit_forces_redraw_(false),
shared_bitmap_manager_(params->shared_bitmap_manager),
gpu_memory_buffer_manager_(params->gpu_memory_buffer_manager),
task_graph_runner_(params->task_graph_runner),
@@ -444,6 +443,10 @@ void LayerTreeHostInProcess::FinishCommitOnImplThread(
sync_tree->ForceRedrawNextActivation();
next_commit_forces_redraw_ = false;
}
+ if (next_commit_forces_recalculate_raster_scales_) {
+ sync_tree->ForceRecalculateRasterScales();
+ next_commit_forces_recalculate_raster_scales_ = false;
+ }
sync_tree->set_source_frame_number(SourceFrameNumber());
@@ -604,6 +607,11 @@ void LayerTreeHostInProcess::SetNeedsCommit() {
swap_promise_manager_.NotifySwapPromiseMonitorsOfSetNeedsCommit();
}
+void LayerTreeHostInProcess::SetNeedsRecalculateRasterScales() {
+ next_commit_forces_recalculate_raster_scales_ = true;
+ proxy_->SetNeedsCommit();
+}
+
void LayerTreeHostInProcess::SetNeedsRedraw() {
SetNeedsRedrawRect(gfx::Rect(layer_tree_->device_viewport_size()));
}
« no previous file with comments | « cc/trees/layer_tree_host_in_process.h ('k') | cc/trees/layer_tree_host_unittest_picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698