| Index: cc/layers/nine_patch_layer.cc
|
| diff --git a/cc/layers/nine_patch_layer.cc b/cc/layers/nine_patch_layer.cc
|
| index f22fcba1635fdf66073d1558a51e4b0950ac2447..5ee15a29cf010bd9e315cb144231f89c6774d8ca 100644
|
| --- a/cc/layers/nine_patch_layer.cc
|
| +++ b/cc/layers/nine_patch_layer.cc
|
| @@ -62,12 +62,11 @@ void NinePatchLayer::Update(ResourceUpdateQueue* queue,
|
| CreateUpdaterIfNeeded();
|
|
|
| if (resource_ && (bitmap_dirty_ || resource_->texture()->ResourceId() == 0)) {
|
| - gfx::Rect contentRect(gfx::Point(),
|
| - gfx::Size(bitmap_.width(), bitmap_.height()));
|
| + gfx::Rect content_rect(0, 0, bitmap_.width(), bitmap_.height());
|
| ResourceUpdate upload = ResourceUpdate::Create(resource_->texture(),
|
| &bitmap_,
|
| - contentRect,
|
| - contentRect,
|
| + content_rect,
|
| + content_rect,
|
| gfx::Vector2d());
|
| queue->AppendFullUpload(upload);
|
| bitmap_dirty_ = false;
|
|
|