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

Issue 476833004: Refactor GrLayerCache for new API (Closed)

Created:
6 years, 4 months ago by robertphillips
Modified:
6 years, 4 months ago
Reviewers:
bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Refactor GrLayerCache for new API The only substantive change in this CL is skipping atlasing for any layers that are involved in nesting. Prior versions have allowed nesting layers to be atlased. This is calved off of (Add new API to allow layer hoisting/atlasing across picture piles - https://codereview.chromium.org/474623002/) -------------------------------------------------------- All times are on Windows with a repeat count of 200. Format is: <time in ms> (<# of glBindframebuffer calls>) How to interpret this: For the boogie page: both columns should be the same (since boogie has no nested layers) without the new API the tiled case doesn't show any real benefit from hoisting For the carsvg page: The nesting change does increase the number of FBO switches but doesn't kill performance Because of the location & size of the layers the tile case does show some improvement (even without the new API) boogie ------- w/o nested change w/ nested change simple 5.62 (811) N/A tiled 7.72 (811) N/A simple w/ hoisting 5.23 (409) 5.77 (409) (but no caching) tiled w/ hoisting 7.57 (809) 7.49 (809) (but no caching) carsvg ------ w/o nested change w/ nested change simple 60.37 (141990) N/A tiled 115.13 (256929) N/A simple w/ hoisting 41.57 (64570) 42.82 (72279) (but no caching) tiled w/ hoisting 84.24 (154352) 84.71 (165630) (but no caching) Committed: https://skia.googlesource.com/skia/+/6f294af43bcd94ed9616a7e4f5892589813d0a01

Patch Set 1 #

Patch Set 2 : Fix up #

Patch Set 3 : Add DISABLE_CACHING guard #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -66 lines) Patch
M src/gpu/GrLayerCache.h View 1 4 chunks +14 lines, -10 lines 0 comments Download
M src/gpu/GrLayerCache.cpp View 1 2 7 chunks +63 lines, -42 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 chunks +13 lines, -3 lines 0 comments Download
M tests/GpuLayerCacheTest.cpp View 1 6 chunks +11 lines, -11 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
robertphillips
6 years, 4 months ago (2014-08-18 15:23:08 UTC) #1
bsalomon
lgtm
6 years, 4 months ago (2014-08-18 15:34:28 UTC) #2
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 4 months ago (2014-08-18 15:37:05 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/476833004/40001
6 years, 4 months ago (2014-08-18 15:37:58 UTC) #4
commit-bot: I haz the power
6 years, 4 months ago (2014-08-18 15:50:09 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 (40001) as 6f294af43bcd94ed9616a7e4f5892589813d0a01

Powered by Google App Engine
This is Rietveld 408576698