| Index: cc/layers/nine_patch_layer.cc
|
| diff --git a/cc/layers/nine_patch_layer.cc b/cc/layers/nine_patch_layer.cc
|
| index e32f6e0b125230633449e3141994ee2c81d82bed..517b49b68fc50ad69e0da9d722a8ccd59de88bb2 100644
|
| --- a/cc/layers/nine_patch_layer.cc
|
| +++ b/cc/layers/nine_patch_layer.cc
|
| @@ -72,6 +72,7 @@ bool NinePatchLayer::Update(ResourceUpdateQueue* queue,
|
| bitmap_dirty_ = false;
|
| updated = true;
|
| }
|
| +
|
| return updated;
|
| }
|
|
|
| @@ -111,6 +112,11 @@ void NinePatchLayer::PushPropertiesTo(LayerImpl* layer) {
|
| layer_impl->SetLayout(
|
| gfx::Size(bitmap_.width(), bitmap_.height()), image_aperture_);
|
| }
|
| +
|
| + // NinePatchLayer must push properties every commit to make sure
|
| + // NinePatchLayerImpl::resource_id_ is valid.
|
| + // http://crbug.com/276482
|
| + needs_push_properties_ = true;
|
| }
|
|
|
| } // namespace cc
|
|
|