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

Unified Diff: cc/tiling_data.cc

Issue 12221077: Fixing tile grid size used by cc:Picture to make it respect current tile configuration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix for picture_layer_impl_unittest Created 7 years, 10 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
« cc/picture_pile.cc ('K') | « cc/tiling_data.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiling_data.cc
diff --git a/cc/tiling_data.cc b/cc/tiling_data.cc
index 357c17b4a05f174c0ac6162708ba906aeb834485..d8055e5fe7e39ba06045afc517909231ef4c453a 100644
--- a/cc/tiling_data.cc
+++ b/cc/tiling_data.cc
@@ -256,6 +256,12 @@ void TilingData::RecomputeNumTiles() {
num_tiles_y_ = ComputeNumTiles(max_texture_size_.height(), total_size_.height(), border_texels_);
}
+gfx::Size TilingData::TileStride() const {
+ gfx::Size tile_grid_size = max_texture_size_;
+ tile_grid_size.Enlarge(- 2 * border_texels_, - 2 * border_texels_);
danakj 2013/02/11 17:12:46 Does the TileGrid assume border pixels are on the
+ return tile_grid_size;
+}
+
TilingData::BaseIterator::BaseIterator(const TilingData* tiling_data)
: tiling_data_(tiling_data),
index_x_(-1),
« cc/picture_pile.cc ('K') | « cc/tiling_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698