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

Unified Diff: cc/layers/nine_patch_layer.cc

Issue 12967018: cc: Avoid pointless gfx::Point/Size contructors when making Rects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RectFs as well Created 7 years, 9 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 | « cc/layers/layer_iterator_unittest.cc ('k') | cc/layers/nine_patch_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/nine_patch_layer.cc
diff --git a/cc/layers/nine_patch_layer.cc b/cc/layers/nine_patch_layer.cc
index 4301a85c7b8bb078362e72494d4670ed19fe085a..f66fb494019c474f3b34a7b20dd7bf5405e1c940 100644
--- a/cc/layers/nine_patch_layer.cc
+++ b/cc/layers/nine_patch_layer.cc
@@ -63,8 +63,7 @@ void NinePatchLayer::Update(ResourceUpdateQueue* queue,
if (resource_ &&
(bitmap_dirty_ || resource_->texture()->resource_id() == 0)) {
- gfx::Rect content_rect(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_,
content_rect,
« no previous file with comments | « cc/layers/layer_iterator_unittest.cc ('k') | cc/layers/nine_patch_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698