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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2068413002: cc: Remove fixed raster scale, stop rasterizing with will-change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile fix Created 4 years, 6 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_impl.h ('k') | cc/trees/layer_tree_host_unittest_remote_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index f558733c589de32d5ec3e280cf9f4788a7189439..c24e1d43ff788997178da04ea2e2c4cc98e3c454 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -243,8 +243,7 @@ LayerTreeHostImpl::LayerTreeHostImpl(
id_(id),
requires_high_res_to_draw_(false),
is_likely_to_require_a_draw_(false),
- mutator_(nullptr),
- has_fixed_raster_scale_blurry_content_(false) {
+ mutator_(nullptr) {
DCHECK(animation_host_);
animation_host_->SetMutatorHostClient(this);
@@ -356,9 +355,6 @@ void LayerTreeHostImpl::CommitComplete() {
UpdateTreeResourcesForGpuRasterizationIfNeeded();
sync_tree()->set_needs_update_draw_properties();
- // Advance the attempted scale change history before updating draw properties.
- fixed_raster_scale_attempted_scale_change_history_ <<= 1;
-
// We need an update immediately post-commit to have the opportunity to create
// tilings. Because invalidations may be coming from the main thread, it's
// safe to do an update for lcd text at this point and see if lcd text needs
@@ -4030,14 +4026,4 @@ bool LayerTreeHostImpl::CommitToActiveTree() const {
return !task_runner_provider_->HasImplThread();
}
-bool LayerTreeHostImpl::HasFixedRasterScalePotentialPerformanceRegression()
- const {
- return fixed_raster_scale_attempted_scale_change_history_.count() >=
- kFixedRasterScaleAttemptedScaleChangeThreshold;
-}
-
-void LayerTreeHostImpl::SetFixedRasterScaleAttemptedToChangeScale() {
- fixed_raster_scale_attempted_scale_change_history_.set(0);
-}
-
} // namespace cc
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_unittest_remote_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698