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

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

Issue 2317913002: cc: Change preraster/predecode split to be half of max skewport extent. (Closed)
Patch Set: compile fix Created 4 years, 3 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 | « cc/debug/rasterize_and_record_benchmark_impl.cc ('k') | cc/test/fake_tile_manager.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 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after
1235 } 1235 }
1236 1236
1237 std::unique_ptr<PictureLayerTilingSet> 1237 std::unique_ptr<PictureLayerTilingSet>
1238 PictureLayerImpl::CreatePictureLayerTilingSet() { 1238 PictureLayerImpl::CreatePictureLayerTilingSet() {
1239 const LayerTreeSettings& settings = layer_tree_impl()->settings(); 1239 const LayerTreeSettings& settings = layer_tree_impl()->settings();
1240 return PictureLayerTilingSet::Create( 1240 return PictureLayerTilingSet::Create(
1241 GetTree(), this, settings.tiling_interest_area_padding, 1241 GetTree(), this, settings.tiling_interest_area_padding,
1242 layer_tree_impl()->use_gpu_rasterization() 1242 layer_tree_impl()->use_gpu_rasterization()
1243 ? settings.gpu_rasterization_skewport_target_time_in_seconds 1243 ? settings.gpu_rasterization_skewport_target_time_in_seconds
1244 : settings.skewport_target_time_in_seconds, 1244 : settings.skewport_target_time_in_seconds,
1245 settings.skewport_extrapolation_limit_in_screen_pixels); 1245 settings.skewport_extrapolation_limit_in_screen_pixels,
1246 settings.max_preraster_distance_in_screen_pixels);
1246 } 1247 }
1247 1248
1248 void PictureLayerImpl::UpdateIdealScales() { 1249 void PictureLayerImpl::UpdateIdealScales() {
1249 DCHECK(CanHaveTilings()); 1250 DCHECK(CanHaveTilings());
1250 1251
1251 float min_contents_scale = MinimumContentsScale(); 1252 float min_contents_scale = MinimumContentsScale();
1252 DCHECK_GT(min_contents_scale, 0.f); 1253 DCHECK_GT(min_contents_scale, 0.f);
1253 1254
1254 ideal_page_scale_ = IsAffectedByPageScale() 1255 ideal_page_scale_ = IsAffectedByPageScale()
1255 ? layer_tree_impl()->current_page_scale_factor() 1256 ? layer_tree_impl()->current_page_scale_factor()
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1337 bool PictureLayerImpl::IsOnActiveOrPendingTree() const { 1338 bool PictureLayerImpl::IsOnActiveOrPendingTree() const {
1338 return !layer_tree_impl()->IsRecycleTree(); 1339 return !layer_tree_impl()->IsRecycleTree();
1339 } 1340 }
1340 1341
1341 bool PictureLayerImpl::HasValidTilePriorities() const { 1342 bool PictureLayerImpl::HasValidTilePriorities() const {
1342 return IsOnActiveOrPendingTree() && 1343 return IsOnActiveOrPendingTree() &&
1343 is_drawn_render_surface_layer_list_member(); 1344 is_drawn_render_surface_layer_list_member();
1344 } 1345 }
1345 1346
1346 } // namespace cc 1347 } // namespace cc
OLDNEW
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark_impl.cc ('k') | cc/test/fake_tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698