summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_content_layer_client.cc
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-09 02:02:18 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-09 02:02:18 +0000
commitd79757e3da43f56698b0f3d1aeae71bf80896bd8 (patch)
tree25c29dbd49ff72e7632e421ec4fd0a29b994b896 /cc/test/fake_content_layer_client.cc
parent58622c25c65388dd60b7bdce80f313d054f4f133 (diff)
downloadchromium_src-d79757e3da43f56698b0f3d1aeae71bf80896bd8.zip
chromium_src-d79757e3da43f56698b0f3d1aeae71bf80896bd8.tar.gz
chromium_src-d79757e3da43f56698b0f3d1aeae71bf80896bd8.tar.bz2
cc: Add some early outs to avoid expensive operations
mapHomgenousPoint is not cheap. We can do faster in projectClippedRect similar to mapClippedRect. rectSubtractRegion constructs a Region to do subtraction from. If the subtraction's rvalue is empty, then there is nothing to do and we can avoid creating a Region structure at all. I measured time spent in calculateRenderPasses with a draw-heavy unit test. Baseline: 0.001148 seconds With these changes: 0.001116 seconds So, about 3% reduction in time spent in calculateRenderPasses. R=enne BUG=159718 Review URL: https://chromiumcodereview.appspot.com/11312154 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166841 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_content_layer_client.cc')
0 files changed, 0 insertions, 0 deletions