summaryrefslogtreecommitdiffstats
path: root/cc/tiles
Commit message (Collapse)AuthorAgeFilesLines
* cc: Make a FakeResourceProvider and use it in tests to construct.danakj2015-05-262-14/+6
| | | | | | | | | | | | This way we don't have to pass a bunch of parameters we don't care about at every unit test call site. R=enne,vmpstr CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1155263003 Cr-Commit-Position: refs/heads/master@{#331476}
* cc: Don't invalidate pending tree tilings on commit.vmpstr2015-05-262-1/+13
| | | | | | | | | | | | | Since we're not sharing tiles, there should be no tiles on the pending tree when we're committing. That means we can skip region iteration and scaling. R=danakj CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1150713003 Cr-Commit-Position: refs/heads/master@{#331463}
* Remove gfx::FrameTime for a single clock sourceabhishek.ka2015-05-261-2/+0
| | | | | | | | | | | | | A single clock source should be used through out the code. This patch removes the gfx::FrameTime clock and uses the base::TimeTicks overall. BUG=447329 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1143433005 Cr-Commit-Position: refs/heads/master@{#331327}
* cc: Keep track of finished rasterized tilingshendrikw2015-05-225-22/+46
| | | | | | | | | | | | | | | | And prevent iterators from being created if the tilings are already completely rasterized. +test 3-8% improvement on tough compositor cases, CC_POSTER_CIR BUG=488638 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1154663002 Cr-Commit-Position: refs/heads/master@{#331199}
* cc: Make corner cases of tile priority computation more simple.e.hakkinen2015-05-221-9/+5
| | | | | | | | | | This changes tile priority computation so that max tile priority bin has an effect only on priority bin but not on distance to visible. This affects only tiles on layers which do not have valid tile priorities. Review URL: https://codereview.chromium.org/1154503002 Cr-Commit-Position: refs/heads/master@{#331086}
* cc: Remove recycled twin information from picture layer tiling set.vmpstr2015-05-202-13/+2
| | | | | | | | | | | | | This patch cleans up some more recycled twin information. In particular, it removes it from the picture layer tiling set. This makes it possible to remove one of the functions that gets the recycled twin from the layer. R=enne, danakj Review URL: https://codereview.chromium.org/1149843002 Cr-Commit-Position: refs/heads/master@{#330820}
* cc: TilingSetRasterQueue clean-ups and optimizations.vmpstr2015-05-202-47/+9
| | | | | | | | | | | | | This patch removes some redundant code (fixing a bunch of TODOs). Also ensures that we only call pending_visible_rect once per iterator (since the function involves a virtual call). R=enne BUG=488636 Review URL: https://codereview.chromium.org/1144973005 Cr-Commit-Position: refs/heads/master@{#330787}
* cc: Optimize OnePriorityRectIterator a little bit.vmpstr2015-05-192-8/+19
| | | | | | | | | | | | | This is a pretty small optimization, but it saves a few struct copies, which seems to make a small difference (~1% improvement) in a targeted perftest that runs this function. R=enne BUG=488636 Review URL: https://codereview.chromium.org/1130343005 Cr-Commit-Position: refs/heads/master@{#330637}
* cc: Ensure that skewport.Contains(visible_rect) is always true.vmpstr2015-05-192-0/+31
| | | | | | | | | | | | | | This patch ensures that the skewport contains the visible rect. This is a required that could be violated by extreme visible rects that would overflow integer math. The fix is to add an extra union. Includes a test. R=enne BUG=487130 Review URL: https://codereview.chromium.org/1131383007 Cr-Commit-Position: refs/heads/master@{#330600}
* Rename cc::ResourceProvider::ResourceId to cc::ResourceId and move it to its ↵jbauman2015-05-191-1/+1
| | | | | | | | | | own file. This allows files like surface_resource_holder.h and transferable_resource.h to depend on the typedef without depending on resource_provider.h Review URL: https://codereview.chromium.org/1144523003 Cr-Commit-Position: refs/heads/master@{#330459}
* cc: Optimize the tile map key hash for 4-byte size_t.vmpstr2015-05-182-18/+46
| | | | | | | | | | | | | | | | | | This patch changes the hash function for the tile map key to use 16 least significant bits from each index. This makes it faster on systems where sizeof(size_t) == 4. The collisions would only start happening after a large enough index. This makes the TilingSetRasterQueueConstructAndIterate test do about 10% more iterations per second on N4. BUG=488636 R=enne, danakj Review URL: https://codereview.chromium.org/1133243010 Cr-Commit-Position: refs/heads/master@{#330448}
* cc: Move files out of cc/resources/.danakj2015-05-1836-0/+11199
This moves files into cc/playback/ cc/raster/ cc/tiles/ and cc/output/ and is based on the proposal found in https://docs.google.com/spreadsheets/d/1wmPOmV9uqd9zNJ5l2TGePH7_vlSvPeXbC-Y3SeGJ_rc/edit#gid=0 R=enne, vmpstr TBR=piman BUG=488755 Review URL: https://codereview.chromium.org/1144693002 Cr-Commit-Position: refs/heads/master@{#330396}