diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-20 03:50:21 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-20 03:50:21 +0000 |
commit | 935ba27050014122fe90f049a4f1deb46ed706bd (patch) | |
tree | 5041e9cd7ccf2da87df61c5adb08e030a19ca5cf /cc/output/renderer_pixeltest.cc | |
parent | e9561a0db15f4d1384c150c589caf86cdb33dc93 (diff) | |
download | chromium_src-935ba27050014122fe90f049a4f1deb46ed706bd.zip chromium_src-935ba27050014122fe90f049a4f1deb46ed706bd.tar.gz chromium_src-935ba27050014122fe90f049a4f1deb46ed706bd.tar.bz2 |
Add shortcut path for scaling integer rects.
This adds a method to scale and take the enclosing/enclosed rect
for an integer rect, and uses it in cc/.
This method avoids mode complex methods in safe_integer_conversions
since the input is an integer rect not an arbitrary float rect.
This moves the ImplSidePaintingPerfTest.HeavyPage test from about
0.96 ms/commit to about 0.92 ms/commit.
R=enne, sky
BUG=239684
Review URL: https://chromiumcodereview.appspot.com/15313003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201006 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/output/renderer_pixeltest.cc')
-rw-r--r-- | cc/output/renderer_pixeltest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/output/renderer_pixeltest.cc b/cc/output/renderer_pixeltest.cc index 672f64b..060a284 100644 --- a/cc/output/renderer_pixeltest.cc +++ b/cc/output/renderer_pixeltest.cc @@ -910,7 +910,7 @@ TYPED_TEST(RendererPixelTest, PictureDrawQuadNonIdentityScale) { pile->RerecordPile(); gfx::Rect content_rect( - gfx::ToEnclosingRect(gfx::ScaleRect(layer_rect, contents_scale))); + gfx::ScaleToEnclosingRect(layer_rect, contents_scale)); gfx::Rect content_union_rect( gfx::ToEnclosingRect(gfx::ScaleRect(union_layer_rect, contents_scale))); |