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

Issue 1107973004: Pull cache out of GrContext (Closed)

Created:
5 years, 7 months ago by bsalomon
Modified:
5 years, 7 months ago
CC:
review_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

This replaces the texture creation/caching functions on GrContext with a GrTextureProvider interface. The goal is to pass this narrowly focused object in places that currently take a GrContext but don't need and shouldn't use its other methods. It also has an extended private interface for interacting with non-texture resource types. Committed: https://skia.googlesource.com/skia/+/d309e7aa0efa2d5dd7e7b1af97026fcd3a047e98

Patch Set 1 #

Patch Set 2 : updated #

Patch Set 3 : updated #

Patch Set 4 : update #

Total comments: 12

Patch Set 5 : Address comments #

Patch Set 6 : fixpicturerenderer.cpp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+509 lines, -369 lines) Patch
M gm/texdata.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M gyp/gpu.gypi View 1 2 chunks +2 lines, -0 lines 0 comments Download
M include/gpu/GrContext.h View 1 2 3 4 10 chunks +33 lines, -141 lines 0 comments Download
A include/gpu/GrTextureProvider.h View 1 2 3 4 1 chunk +167 lines, -0 lines 0 comments Download
M src/core/SkImageFilter.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/effects/SkAlphaThresholdFilter.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/effects/SkBlurMaskFilter.cpp View 1 2 3 4 9 chunks +18 lines, -12 lines 0 comments Download
M src/effects/SkColorCubeFilter.cpp View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M src/effects/SkDisplacementMapEffect.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/effects/SkGpuBlurUtils.cpp View 1 1 chunk +4 lines, -2 lines 0 comments Download
M src/effects/SkLightingImageFilter.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/effects/SkMorphologyImageFilter.cpp View 1 2 chunks +4 lines, -2 lines 0 comments Download
M src/effects/SkXfermodeImageFilter.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrAADistanceFieldPathRenderer.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrBatchFontCache.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/GrClipMaskCache.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/GrContext.cpp View 1 12 chunks +11 lines, -123 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrLayerCache.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
A src/gpu/GrResourceProvider.h View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/GrStencilAndCoverPathRenderer.cpp View 1 2 chunks +4 lines, -2 lines 0 comments Download
M src/gpu/GrStencilAndCoverTextContext.cpp View 1 2 chunks +3 lines, -2 lines 0 comments Download
A src/gpu/GrTextureProvider.cpp View 1 2 3 4 1 chunk +134 lines, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 4 chunks +10 lines, -8 lines 0 comments Download
M src/gpu/SkGr.cpp View 1 7 chunks +13 lines, -10 lines 0 comments Download
M src/gpu/SkGrPixelRef.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/effects/GrConfigConversionEffect.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
M src/gpu/effects/GrTextureStripAtlas.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
M src/image/SkSurface_Gpu.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/views/SkWindow.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/ClipCacheTest.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tests/FloatingPointTextureTest.cpp View 1 3 chunks +6 lines, -5 lines 0 comments Download
M tests/GLProgramsTest.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
M tests/GrSurfaceTest.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M tests/ReadPixelsTest.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M tests/ReadWriteAlphaTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/RecordReplaceDrawTest.cpp View 1 2 chunks +4 lines, -3 lines 0 comments Download
M tests/ResourceCacheTest.cpp View 1 6 chunks +9 lines, -8 lines 0 comments Download
M tests/SurfaceTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/TessellatingPathRendererTests.cpp View 1 1 chunk +2 lines, -3 lines 0 comments Download
M tests/WritePixelsTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M tools/PictureRenderer.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (6 generated)
bsalomon
5 years, 7 months ago (2015-04-30 19:29:02 UTC) #2
robertphillips
lgtm + nits & questions https://codereview.chromium.org/1107973004/diff/60001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/1107973004/diff/60001/include/gpu/GrContext.h#newcode517 include/gpu/GrContext.h:517: /////////////////////////////////////////////////////////////////////////// #ifdef LEGACY_TEXTURE_INTF ? ...
5 years, 7 months ago (2015-04-30 20:43:44 UTC) #3
bsalomon
https://codereview.chromium.org/1107973004/diff/60001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/1107973004/diff/60001/include/gpu/GrContext.h#newcode517 include/gpu/GrContext.h:517: /////////////////////////////////////////////////////////////////////////// On 2015/04/30 20:43:44, robertphillips wrote: > #ifdef LEGACY_TEXTURE_INTF ...
5 years, 7 months ago (2015-04-30 20:58:40 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1107973004/80001
5 years, 7 months ago (2015-04-30 20:59:02 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot/builds/784) Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, ...
5 years, 7 months ago (2015-04-30 21:03:03 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1107973004/100001
5 years, 7 months ago (2015-04-30 21:07:28 UTC) #12
commit-bot: I haz the power
5 years, 7 months ago (2015-04-30 21:19:02 UTC) #13
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/d309e7aa0efa2d5dd7e7b1af97026fcd3a047e98

Powered by Google App Engine
This is Rietveld 408576698