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

Issue 217343006: Add a GrLayerCache to GrContext (Closed)

Created:
6 years, 8 months ago by robertphillips
Modified:
6 years, 8 months ago
Reviewers:
bsalomon
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Add a GrLayerCache to GrContext The GrLayerCache will cache the pre-rendered saveLayers. This CL requires https://codereview.chromium.org/217423014/ (Minor changes to GrFontCache system) land first. BUG=skia:2315

Patch Set 1 #

Total comments: 5

Patch Set 2 : Update to use picture's gen ID #

Patch Set 3 : Fixed compiler complaint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -1 line) Patch
M gyp/gpu.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M include/gpu/GrContext.h View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 4 chunks +5 lines, -0 lines 0 comments Download
A src/gpu/GrLayerCache.h View 1 2 1 chunk +93 lines, -0 lines 0 comments Download
A src/gpu/GrLayerCache.cpp View 1 2 1 chunk +86 lines, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
robertphillips
6 years, 8 months ago (2014-04-01 14:57:25 UTC) #1
bsalomon
https://codereview.chromium.org/217343006/diff/1/src/gpu/GrLayerCache.cpp File src/gpu/GrLayerCache.cpp (right): https://codereview.chromium.org/217343006/diff/1/src/gpu/GrLayerCache.cpp#newcode75 src/gpu/GrLayerCache.cpp:75: const GrAtlasedLayer* GrLayerCache::findLayer(SkPicture* picture, int id) { Seems like ...
6 years, 8 months ago (2014-04-01 15:26:35 UTC) #2
bsalomon
How hard would it be to make the owner of the texture (GrAtlasMgr?) use GrResourceCache. ...
6 years, 8 months ago (2014-04-01 15:32:00 UTC) #3
robertphillips
Right - I want to do that (i.e., use a cached texture) for both the ...
6 years, 8 months ago (2014-04-01 15:49:50 UTC) #4
robertphillips
https://codereview.chromium.org/217343006/diff/1/src/gpu/GrLayerCache.cpp File src/gpu/GrLayerCache.cpp (right): https://codereview.chromium.org/217343006/diff/1/src/gpu/GrLayerCache.cpp#newcode75 src/gpu/GrLayerCache.cpp:75: const GrAtlasedLayer* GrLayerCache::findLayer(SkPicture* picture, int id) { On 2014/04/01 ...
6 years, 8 months ago (2014-04-01 16:51:49 UTC) #5
bsalomon
https://codereview.chromium.org/217343006/diff/1/src/gpu/GrLayerCache.h File src/gpu/GrLayerCache.h (right): https://codereview.chromium.org/217343006/diff/1/src/gpu/GrLayerCache.h#newcode48 src/gpu/GrLayerCache.h:48: SkPicture* fPicture; On 2014/04/01 16:51:49, robertphillips wrote: > I ...
6 years, 8 months ago (2014-04-01 16:59:04 UTC) #6
robertphillips
PTAL - this now uses the SkPicture's generation ID
6 years, 8 months ago (2014-04-02 19:28:38 UTC) #7
bsalomon
lgtm. This makes me even less happy that GrContext.h is public, but that's not the ...
6 years, 8 months ago (2014-04-02 20:52:19 UTC) #8
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 8 months ago (2014-04-03 00:27:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/217343006/40001
6 years, 8 months ago (2014-04-03 00:27:56 UTC) #10
robertphillips
The CQ bit was unchecked by robertphillips@google.com
6 years, 8 months ago (2014-04-03 00:33:54 UTC) #11
robertphillips
6 years, 8 months ago (2014-04-03 00:34:52 UTC) #12
Message was sent while issue was closed.
committed as r14038

Powered by Google App Engine
This is Rietveld 408576698