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

Unified Diff: cc/picture_layer_impl.cc

Issue 12224063: cc: Make picture layer tiles multiples of 64 pixels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_layer_impl.cc
diff --git a/cc/picture_layer_impl.cc b/cc/picture_layer_impl.cc
index 98a3c4ef2c7c1bce8e004edce67950b8a70422b6..bb608e84e00d27661ac0bb86599db4f79981bbca 100644
--- a/cc/picture_layer_impl.cc
+++ b/cc/picture_layer_impl.cc
@@ -360,10 +360,12 @@ gfx::Size PictureLayerImpl::CalculateTileSize(
std::min(max_untiled_content_size.width(), content_bounds.width());
int height =
std::min(max_untiled_content_size.height(), content_bounds.height());
- // Round width and height up to the closest multiple of 8. This is to
- // help IMG drivers where facter of 8 texture sizes are faster.
- width = RoundUp(width, 8);
- height = RoundUp(height, 8);
+ // Round width and height up to the closest multiple of 64. This is to
+ // help IMG drivers where facter of 8 texture sizes are faster, and also
+ // to prevent creating textures of too many different size for better
+ // recycling.
+ width = RoundUp(width, 64);
+ height = RoundUp(height, 64);
return gfx::Size(width, height);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698