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

Unified Diff: cc/picture_layer_impl.cc

Issue 11516022: cc: Resize picture layer tiling set during commit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/picture_layer_impl.h ('k') | cc/picture_layer_tiling_set.cc » ('j') | 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 7e67d001574a377b75818d9429ab68e58e19ef36..9f814a514e2677403f67c4c2ca25acdae13a9c46 100644
--- a/cc/picture_layer_impl.cc
+++ b/cc/picture_layer_impl.cc
@@ -129,7 +129,6 @@ void PictureLayerImpl::dumpLayerProperties(std::string*, int indent) const {
void PictureLayerImpl::didUpdateTransforms() {
if (drawsContent()) {
- tilings_.SetLayerBounds(bounds());
// TODO(enne): Add more tilings during pinch zoom.
if (!tilings_.num_tilings()) {
gfx::Size tile_size = layerTreeHostImpl()->settings().defaultTileSize;
@@ -165,6 +164,10 @@ void PictureLayerImpl::didUpdateTransforms() {
last_content_scale_y_ = contentsScaleY();
}
+void PictureLayerImpl::didUpdateBounds() {
+ tilings_.SetLayerBounds(bounds());
+}
+
scoped_refptr<Tile> PictureLayerImpl::CreateTile(PictureLayerTiling* tiling,
gfx::Rect rect) {
TileManager* tile_manager = layerTreeHostImpl()->tileManager();
« no previous file with comments | « cc/picture_layer_impl.h ('k') | cc/picture_layer_tiling_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698