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

Issue 671683004: Picture shader resource caching. (Closed)

Created:
6 years, 2 months ago by f(malita)
Modified:
6 years, 2 months ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Picture shader resource caching. Replace the current/naive shader caching mechanism with a more general implementation based on SkResourceCache. Caching the bitmap shader itself (as opposed to just the tile bitmap) makes for a chunkier key, but OTOH avoids allocating new shaders on cache hit. R=reed@google.com,mtklein@google.com Committed: https://skia.googlesource.com/skia/+/23df2d693304824a2ce7ac3d988b0e48fec1c49d

Patch Set 1 #

Patch Set 2 : include fScale in fLocalMatrix #

Patch Set 3 : cannot combine scale & localmatrix #

Total comments: 3

Patch Set 4 : use the cache allocator #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -18 lines) Patch
M src/core/SkPictureShader.h View 1 chunk +3 lines, -7 lines 0 comments Download
M src/core/SkPictureShader.cpp View 1 2 3 3 chunks +130 lines, -11 lines 0 comments Download

Messages

Total messages: 14 (1 generated)
f(malita)
6 years, 2 months ago (2014-10-21 17:21:49 UTC) #1
mtklein
https://codereview.chromium.org/671683004/diff/40001/src/core/SkPictureShader.cpp File src/core/SkPictureShader.cpp (right): https://codereview.chromium.org/671683004/diff/40001/src/core/SkPictureShader.cpp#newcode83 src/core/SkPictureShader.cpp:83: // FIXME: there's considerable boilerplate/duplication here vs. the global ...
6 years, 2 months ago (2014-10-21 17:27:45 UTC) #2
f(malita)
On 2014/10/21 17:27:45, mtklein wrote: > https://codereview.chromium.org/671683004/diff/40001/src/core/SkPictureShader.cpp > File src/core/SkPictureShader.cpp (right): > > https://codereview.chromium.org/671683004/diff/40001/src/core/SkPictureShader.cpp#newcode83 > ...
6 years, 2 months ago (2014-10-21 17:29:42 UTC) #3
f(malita)
On 2014/10/21 17:29:42, Florin Malita wrote: > On 2014/10/21 17:27:45, mtklein wrote: > > > ...
6 years, 2 months ago (2014-10-21 17:32:30 UTC) #4
reed1
lets see if we can easily add some namespacing/domaing keys to R.C.
6 years, 2 months ago (2014-10-21 17:34:01 UTC) #5
mtklein
On 2014/10/21 17:34:01, reed1 wrote: > lets see if we can easily add some namespacing/domaing ...
6 years, 2 months ago (2014-10-21 17:38:11 UTC) #6
reed1
lgtm if you want to land this now, and address the domain issue later.
6 years, 2 months ago (2014-10-21 20:18:15 UTC) #7
reed1
not lgtm until we at least address the allocator question. https://codereview.chromium.org/671683004/diff/40001/src/core/SkPictureShader.cpp File src/core/SkPictureShader.cpp (right): https://codereview.chromium.org/671683004/diff/40001/src/core/SkPictureShader.cpp#newcode221 ...
6 years, 2 months ago (2014-10-21 20:28:00 UTC) #8
f(malita)
https://codereview.chromium.org/671683004/diff/40001/src/core/SkPictureShader.cpp File src/core/SkPictureShader.cpp (right): https://codereview.chromium.org/671683004/diff/40001/src/core/SkPictureShader.cpp#newcode221 src/core/SkPictureShader.cpp:221: if (!bm.tryAllocN32Pixels(tileSize.width(), tileSize.height())) { On 2014/10/21 20:28:00, reed1 wrote: ...
6 years, 2 months ago (2014-10-21 23:49:24 UTC) #9
reed1
lgtm
6 years, 2 months ago (2014-10-22 14:04:02 UTC) #10
f(malita)
On 2014/10/22 14:04:02, reed1 wrote: > lgtm Thanks. Will land as-is and then take a ...
6 years, 2 months ago (2014-10-22 14:32:42 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/671683004/60001
6 years, 2 months ago (2014-10-22 14:36:47 UTC) #13
commit-bot: I haz the power
6 years, 2 months ago (2014-10-22 14:39:12 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 23df2d693304824a2ce7ac3d988b0e48fec1c49d

Powered by Google App Engine
This is Rietveld 408576698