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

Side by Side Diff: cc/resources/picture_layer_tiling.cc

Issue 816543004: Update from https://crrev.com/308996 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/resources/picture_layer_tiling.h ('k') | cc/resources/picture_layer_tiling_set.h » ('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/resources/picture_layer_tiling.h" 5 #include "cc/resources/picture_layer_tiling.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <limits> 9 #include <limits>
10 #include <set> 10 #include <set>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const gfx::Size& layer_bounds, 45 const gfx::Size& layer_bounds,
46 PictureLayerTilingClient* client, 46 PictureLayerTilingClient* client,
47 size_t max_tiles_for_interest_area, 47 size_t max_tiles_for_interest_area,
48 float skewport_target_time_in_seconds, 48 float skewport_target_time_in_seconds,
49 int skewport_extrapolation_limit_in_content_pixels) 49 int skewport_extrapolation_limit_in_content_pixels)
50 : max_tiles_for_interest_area_(max_tiles_for_interest_area), 50 : max_tiles_for_interest_area_(max_tiles_for_interest_area),
51 skewport_target_time_in_seconds_(skewport_target_time_in_seconds), 51 skewport_target_time_in_seconds_(skewport_target_time_in_seconds),
52 skewport_extrapolation_limit_in_content_pixels_( 52 skewport_extrapolation_limit_in_content_pixels_(
53 skewport_extrapolation_limit_in_content_pixels), 53 skewport_extrapolation_limit_in_content_pixels),
54 contents_scale_(contents_scale), 54 contents_scale_(contents_scale),
55 client_(client),
55 layer_bounds_(layer_bounds), 56 layer_bounds_(layer_bounds),
56 resolution_(NON_IDEAL_RESOLUTION), 57 resolution_(NON_IDEAL_RESOLUTION),
57 client_(client),
58 tiling_data_(gfx::Size(), gfx::Size(), kBorderTexels), 58 tiling_data_(gfx::Size(), gfx::Size(), kBorderTexels),
59 last_impl_frame_time_in_seconds_(0.0), 59 last_impl_frame_time_in_seconds_(0.0),
60 can_require_tiles_for_activation_(false), 60 can_require_tiles_for_activation_(false),
61 current_content_to_screen_scale_(0.f), 61 current_content_to_screen_scale_(0.f),
62 has_visible_rect_tiles_(false), 62 has_visible_rect_tiles_(false),
63 has_skewport_rect_tiles_(false), 63 has_skewport_rect_tiles_(false),
64 has_soon_border_rect_tiles_(false), 64 has_soon_border_rect_tiles_(false),
65 has_eventually_rect_tiles_(false) { 65 has_eventually_rect_tiles_(false) {
66 gfx::Size content_bounds = 66 gfx::Size content_bounds =
67 gfx::ToCeiledSize(gfx::ScaleSize(layer_bounds, contents_scale)); 67 gfx::ToCeiledSize(gfx::ScaleSize(layer_bounds, contents_scale));
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1180 } 1180 }
1181 current_tile_ = tiling_->TileAt(next_index.first, next_index.second); 1181 current_tile_ = tiling_->TileAt(next_index.first, next_index.second);
1182 } 1182 }
1183 1183
1184 if (current_tile_) 1184 if (current_tile_)
1185 tiling_->UpdateTileAndTwinPriority(current_tile_); 1185 tiling_->UpdateTileAndTwinPriority(current_tile_);
1186 return *this; 1186 return *this;
1187 } 1187 }
1188 1188
1189 } // namespace cc 1189 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling.h ('k') | cc/resources/picture_layer_tiling_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698