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

Side by Side Diff: cc/layers/picture_layer_impl.cc

Issue 2605273003: Don't use DF text during animations (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/layers/picture_layer_impl.h" 5 #include "cc/layers/picture_layer_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 470
471 DCHECK(raster_page_scale_); 471 DCHECK(raster_page_scale_);
472 DCHECK(raster_device_scale_); 472 DCHECK(raster_device_scale_);
473 DCHECK(raster_source_scale_); 473 DCHECK(raster_source_scale_);
474 DCHECK(raster_contents_scale_); 474 DCHECK(raster_contents_scale_);
475 DCHECK(low_res_raster_contents_scale_); 475 DCHECK(low_res_raster_contents_scale_);
476 476
477 was_screen_space_transform_animating_ = 477 was_screen_space_transform_animating_ =
478 draw_properties().screen_space_transform_is_animating; 478 draw_properties().screen_space_transform_is_animating;
479 479
480 if (screen_space_transform_is_animating())
481 raster_source_->SetShouldAttemptToUseDistanceFieldText();
482
483 double current_frame_time_in_seconds = 480 double current_frame_time_in_seconds =
484 (layer_tree_impl()->CurrentBeginFrameArgs().frame_time - 481 (layer_tree_impl()->CurrentBeginFrameArgs().frame_time -
485 base::TimeTicks()).InSecondsF(); 482 base::TimeTicks()).InSecondsF();
486 UpdateViewportRectForTilePriorityInContentSpace(); 483 UpdateViewportRectForTilePriorityInContentSpace();
487 484
488 // The tiling set can require tiles for activation any of the following 485 // The tiling set can require tiles for activation any of the following
489 // conditions are true: 486 // conditions are true:
490 // - This layer produced a high-res or non-ideal-res tile last frame. 487 // - This layer produced a high-res or non-ideal-res tile last frame.
491 // - We're in requires high res to draw mode. 488 // - We're in requires high res to draw mode.
492 // - We're not in smoothness takes priority mode. 489 // - We're not in smoothness takes priority mode.
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 bool PictureLayerImpl::IsOnActiveOrPendingTree() const { 1339 bool PictureLayerImpl::IsOnActiveOrPendingTree() const {
1343 return !layer_tree_impl()->IsRecycleTree(); 1340 return !layer_tree_impl()->IsRecycleTree();
1344 } 1341 }
1345 1342
1346 bool PictureLayerImpl::HasValidTilePriorities() const { 1343 bool PictureLayerImpl::HasValidTilePriorities() const {
1347 return IsOnActiveOrPendingTree() && 1344 return IsOnActiveOrPendingTree() &&
1348 is_drawn_render_surface_layer_list_member(); 1345 is_drawn_render_surface_layer_list_member();
1349 } 1346 }
1350 1347
1351 } // namespace cc 1348 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698