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

Issue 1623653002: skia: Add support for CHROMIUM_image backed textures. (Closed)

Created:
4 years, 11 months ago by erikchen
Modified:
4 years, 10 months ago
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

skia: Add support for CHROMIUM_image backed textures. I created a new abstract base class TextureStorageAllocator that consumers of Skia can subclass and pass back to Skia. When a surface is created with a pointer to a TextureStorageAllocator, any textures it creates, or that are derived from the original surface, will allocate and deallocate storage using the methods on TextureStorageAllocator. BUG=https://code.google.com/p/chromium/issues/detail?id=579664 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1623653002 Committed: https://skia.googlesource.com/skia/+/92098e691f10a010e7421125ba4d44c02506bb55 Committed: https://skia.googlesource.com/skia/+/7fec91ce6660190f8d7c5eb6f3061e4550cc672b Committed: https://skia.googlesource.com/skia/+/b8d6e088590160f1198110c2371b802c1d541a36 Committed: https://skia.googlesource.com/skia/+/9a1ed5d81dbfc7d5b67b568dfe12b4033a9af154

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Compile error. #

Patch Set 4 : Add test. #

Total comments: 4

Patch Set 5 : Comments from bsalomon. #

Patch Set 6 : Minor cleanup. #

Total comments: 19

Patch Set 7 : Comments from salomon, round two. #

Patch Set 8 : Minor cleanup. #

Total comments: 4

Patch Set 9 : Comments from bsalomon, round three. #

Patch Set 10 : Add a context parameter to function pointers. #

Total comments: 10

Patch Set 11 : Comments from bsalomon. #

Patch Set 12 : Comments from bsalomon, round four. #

Total comments: 8

Patch Set 13 : Comments from bsalomon, round five. #

Patch Set 14 : Fix compile error. #

Patch Set 15 : Re-add tests that went missing, undo changes to GrGLGpu that were causing roll failure. #

Patch Set 16 : Style. #

Patch Set 17 : Fix MSVS compile issue, as it doesn't support dynamic-size C arrays. #

Patch Set 18 : Rebase against top of tree. New tests still expected to be broken. #

Patch Set 19 : Possibly fix ANGLE test. #

Patch Set 20 : Rebase against top of tree. Still expected to fail ASAN. #

Patch Set 21 : Add scoped ptrs. #

Patch Set 22 : Add missing ')'. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+322 lines, -73 lines) Patch
M include/core/SkSurface.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +7 lines, -3 lines 0 comments Download
M include/gpu/GrTypes.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +61 lines, -3 lines 0 comments Download
M src/gpu/GrTexture.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/GrTextureProvider.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/SkGpuDevice.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +4 lines, -2 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +11 lines, -6 lines 0 comments Download
M src/gpu/SkGrPixelRef.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/gl/GrGLGpu.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +12 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +100 lines, -52 lines 0 comments Download
M src/gpu/gl/GrGLTexture.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -1 line 0 comments Download
M src/image/SkSurface.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkSurface_Gpu.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +5 lines, -3 lines 0 comments Download
A tests/TextureStorageAllocator.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +109 lines, -0 lines 0 comments Download

Messages

Total messages: 83 (32 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1623653002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1623653002/1
4 years, 11 months ago (2016-01-23 00:19:03 UTC) #4
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 11 months ago (2016-01-23 00:19:04 UTC) #5
commit-bot: I haz the power
Dry run: 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/5548)
4 years, 11 months ago (2016-01-23 00:19:52 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1623653002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1623653002/40001
4 years, 11 months ago (2016-01-23 02:36:21 UTC) #9
commit-bot: I haz the power
Dry run: No LGTM from a valid reviewer yet. Please ask for an LGTM from ...
4 years, 11 months ago (2016-01-23 06:19:02 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1623653002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1623653002/60001
4 years, 11 months ago (2016-01-25 19:53:06 UTC) #13
commit-bot: I haz the power
Dry run: No LGTM from a valid reviewer yet. Please ask for an LGTM from ...
4 years, 11 months ago (2016-01-25 19:53:08 UTC) #15
erikchen
bsalomon: Please review.
4 years, 11 months ago (2016-01-25 20:26:37 UTC) #17
bsalomon
Adding Chris Blume as this may have interactions with his mip map changes. https://codereview.chromium.org/1623653002/diff/60001/include/gpu/GrTypes.h File ...
4 years, 11 months ago (2016-01-25 20:51:09 UTC) #19
bsalomon
+A couple more Skia people.
4 years, 11 months ago (2016-01-25 20:52:07 UTC) #21
cblume
On 2016/01/25 20:51:09, bsalomon wrote: > Adding Chris Blume as this may have interactions with ...
4 years, 11 months ago (2016-01-25 23:17:41 UTC) #22
bsalomon
On 2016/01/25 23:17:41, cblume wrote: > On 2016/01/25 20:51:09, bsalomon wrote: > > Adding Chris ...
4 years, 11 months ago (2016-01-26 14:29:31 UTC) #23
cblume
> IIUC this will be used with the TEXTURE_RECTANGLE target. Rectangle textures > don't support ...
4 years, 11 months ago (2016-01-26 17:08:50 UTC) #24
erikchen
bsalomon: Please review. https://codereview.chromium.org/1623653002/diff/60001/include/gpu/GrTypes.h File include/gpu/GrTypes.h (right): https://codereview.chromium.org/1623653002/diff/60001/include/gpu/GrTypes.h#newcode426 include/gpu/GrTypes.h:426: virtual bool allocateTextureStorage(unsigned textureId, unsigned width, ...
4 years, 11 months ago (2016-01-26 18:36:16 UTC) #25
bsalomon
some tiny nits, mostly more questions. https://codereview.chromium.org/1623653002/diff/100001/include/core/SkSurface.h File include/core/SkSurface.h (right): https://codereview.chromium.org/1623653002/diff/100001/include/core/SkSurface.h#newcode120 include/core/SkSurface.h:120: const SkSurfaceProps* = ...
4 years, 11 months ago (2016-01-26 22:20:55 UTC) #26
erikchen
bsalomon: PTAL https://codereview.chromium.org/1623653002/diff/100001/include/core/SkSurface.h File include/core/SkSurface.h (right): https://codereview.chromium.org/1623653002/diff/100001/include/core/SkSurface.h#newcode120 include/core/SkSurface.h:120: const SkSurfaceProps* = NULL, void* customAllocator = ...
4 years, 11 months ago (2016-01-27 21:55:15 UTC) #27
bsalomon
https://codereview.chromium.org/1623653002/diff/140001/include/gpu/GrTypes.h File include/gpu/GrTypes.h (right): https://codereview.chromium.org/1623653002/diff/140001/include/gpu/GrTypes.h#newcode433 include/gpu/GrTypes.h:433: * The internal format must be GL_RGBA. I'm not ...
4 years, 10 months ago (2016-01-29 16:57:38 UTC) #28
bsalomon
On 2016/01/27 21:55:15, erikchen wrote: > bsalomon: PTAL > > https://codereview.chromium.org/1623653002/diff/100001/include/core/SkSurface.h > File include/core/SkSurface.h (right): ...
4 years, 10 months ago (2016-01-29 17:01:07 UTC) #29
erikchen
bsalomon: PTAL I changed the abstract base class to be a struct container of function ...
4 years, 10 months ago (2016-01-29 20:32:25 UTC) #30
bsalomon
https://codereview.chromium.org/1623653002/diff/180001/include/gpu/GrTypes.h File include/gpu/GrTypes.h (right): https://codereview.chromium.org/1623653002/diff/180001/include/gpu/GrTypes.h#newcode441 include/gpu/GrTypes.h:441: * The MIN and MAX filters for the created ...
4 years, 10 months ago (2016-02-01 14:54:42 UTC) #31
erikchen
bsalomon: PTAL https://codereview.chromium.org/1623653002/diff/180001/include/gpu/GrTypes.h File include/gpu/GrTypes.h (right): https://codereview.chromium.org/1623653002/diff/180001/include/gpu/GrTypes.h#newcode441 include/gpu/GrTypes.h:441: * The MIN and MAX filters for ...
4 years, 10 months ago (2016-02-01 22:58:32 UTC) #32
bsalomon
I thought of another wrinkle here: interaction with the resource cache. 1) Should textures created ...
4 years, 10 months ago (2016-02-02 18:08:00 UTC) #33
erikchen
On 2016/02/02 18:08:00, bsalomon wrote: > I thought of another wrinkle here: interaction with the ...
4 years, 10 months ago (2016-02-03 00:26:30 UTC) #34
bsalomon
https://codereview.chromium.org/1623653002/diff/220001/include/core/SkSurface.h File include/core/SkSurface.h (right): https://codereview.chromium.org/1623653002/diff/220001/include/core/SkSurface.h#newcode115 include/core/SkSurface.h:115: * render target, allocated by the surface. Put the ...
4 years, 10 months ago (2016-02-04 16:27:08 UTC) #35
erikchen
bsalomon: PTAL https://codereview.chromium.org/1623653002/diff/220001/include/core/SkSurface.h File include/core/SkSurface.h (right): https://codereview.chromium.org/1623653002/diff/220001/include/core/SkSurface.h#newcode115 include/core/SkSurface.h:115: * render target, allocated by the surface. ...
4 years, 10 months ago (2016-02-04 18:44:07 UTC) #36
bsalomon
lgtm
4 years, 10 months ago (2016-02-04 19:19:52 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1623653002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1623653002/240001
4 years, 10 months ago (2016-02-04 19:21:32 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/5857)
4 years, 10 months ago (2016-02-04 19:25:02 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1623653002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1623653002/260001
4 years, 10 months ago (2016-02-04 19:32:49 UTC) #44
commit-bot: I haz the power
Committed patchset #14 (id:260001) as https://skia.googlesource.com/skia/+/92098e691f10a010e7421125ba4d44c02506bb55
4 years, 10 months ago (2016-02-04 20:03:11 UTC) #46
reed1
Could this CL be responsible for the DEPS roll failures? @@@STEP_LOG_LINE@DevToolsPixelOutputTests.TestScreenshotRecording@[5247:5247:0204/191232:ERROR:CONSOLE(72)] "Uncaught TypeError: Cannot read ...
4 years, 10 months ago (2016-02-05 03:34:18 UTC) #48
jcgregorio
On 2016/02/05 at 03:34:18, reed wrote: > Could this CL be responsible for the DEPS ...
4 years, 10 months ago (2016-02-05 03:44:44 UTC) #49
jcgregorio
A revert of this CL (patchset #14 id:260001) has been created in https://codereview.chromium.org/1669213002/ by jcgregorio@google.com. ...
4 years, 10 months ago (2016-02-05 03:51:11 UTC) #50
erikchen
On 2016/02/05 03:51:11, jcgregorio wrote: > A revert of this CL (patchset #14 id:260001) has ...
4 years, 10 months ago (2016-02-05 18:34:31 UTC) #53
bsalomon
On 2016/02/05 18:34:31, erikchen wrote: > On 2016/02/05 03:51:11, jcgregorio wrote: > > A revert ...
4 years, 10 months ago (2016-02-05 19:13:03 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1623653002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1623653002/320001
4 years, 10 months ago (2016-02-05 19:21:44 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/5975)
4 years, 10 months ago (2016-02-05 19:25:30 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1623653002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1623653002/340001
4 years, 10 months ago (2016-02-05 19:40:38 UTC) #61
commit-bot: I haz the power
Committed patchset #17 (id:340001) as https://skia.googlesource.com/skia/+/7fec91ce6660190f8d7c5eb6f3061e4550cc672b
4 years, 10 months ago (2016-02-05 20:11:01 UTC) #63
reed1
Is this CL related to this failure? c:\0\build\slave\workdir\build\skia\tests\texturestorageallocator.cpp:83 GrColorUnpackG(dest) == 255 https://uberchromegw.corp.google.com/i/client.skia/builders/Test-Win8-MSVC-ShuttleB-GPU-HD4600-x86_64-Release-ANGLE/builds/1866
4 years, 10 months ago (2016-02-06 01:52:24 UTC) #64
erikchen
On 2016/02/06 01:52:24, reed1 wrote: > Is this CL related to this failure? > > ...
4 years, 10 months ago (2016-02-06 01:54:44 UTC) #65
bsalomon
On 2016/02/06 01:52:24, reed1 wrote: > Is this CL related to this failure? > > ...
4 years, 10 months ago (2016-02-06 01:55:41 UTC) #66
bsalomon
A revert of this CL (patchset #17 id:340001) has been created in https://codereview.chromium.org/1673923003/ by bsalomon@google.com. ...
4 years, 10 months ago (2016-02-06 01:56:28 UTC) #67
erikchen
On 2016/02/06 01:56:28, bsalomon wrote: > A revert of this CL (patchset #17 id:340001) has ...
4 years, 10 months ago (2016-02-09 21:01:34 UTC) #69
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1623653002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1623653002/380001
4 years, 10 months ago (2016-02-09 21:02:41 UTC) #72
bsalomon
On 2016/02/09 21:01:34, erikchen wrote: > On 2016/02/06 01:56:28, bsalomon wrote: > > A revert ...
4 years, 10 months ago (2016-02-09 21:17:58 UTC) #73
commit-bot: I haz the power
Committed patchset #19 (id:380001) as https://skia.googlesource.com/skia/+/b8d6e088590160f1198110c2371b802c1d541a36
4 years, 10 months ago (2016-02-09 21:30:58 UTC) #75
caryclark
A revert of this CL (patchset #19 id:380001) has been created in https://codereview.chromium.org/1684993002/ by caryclark@google.com. ...
4 years, 10 months ago (2016-02-10 00:28:29 UTC) #76
erikchen
On 2016/02/10 00:28:29, caryclark wrote: > A revert of this CL (patchset #19 id:380001) has ...
4 years, 10 months ago (2016-02-11 00:05:06 UTC) #78
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1623653002/430001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1623653002/430001
4 years, 10 months ago (2016-02-11 00:05:29 UTC) #81
commit-bot: I haz the power
4 years, 10 months ago (2016-02-11 00:32:42 UTC) #83
Message was sent while issue was closed.
Committed patchset #22 (id:430001) as
https://skia.googlesource.com/skia/+/9a1ed5d81dbfc7d5b67b568dfe12b4033a9af154

Powered by Google App Engine
This is Rietveld 408576698