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

Issue 1567733005: Add a class representing texture swizzle. (Closed)

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

Description

Add a class representing texture swizzle. Store config swizzle GrGLCaps and shader swizzles in GrGLSLCaps. Remove GrTextureAccess's swizzle and update users of it to swizzle in their shader code. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1567733005 Committed: https://skia.googlesource.com/skia/+/1a1efeacf7cc94a8c2977114dfe230fed3efc105 Committed: https://skia.googlesource.com/skia/+/cdee009886babe6df7743a9b5b3e2cc0a5f21adf

Patch Set 1 #

Patch Set 2 : minor #

Patch Set 3 : fix cast #

Patch Set 4 : change cast type #

Patch Set 5 : comment change #

Total comments: 5

Patch Set 6 : Address comments #

Patch Set 7 : Add .a for color table FP texture reads. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -300 lines) Patch
M include/gpu/GrTextureAccess.h View 1 2 3 2 chunks +8 lines, -47 lines 0 comments Download
M include/gpu/GrTypesPriv.h View 1 chunk +4 lines, -4 lines 0 comments Download
M src/effects/SkColorCubeFilter.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M src/effects/SkTableColorFilter.cpp View 1 2 3 4 5 6 2 chunks +5 lines, -5 lines 0 comments Download
A src/gpu/GrSwizzle.h View 1 2 3 1 chunk +92 lines, -0 lines 0 comments Download
M src/gpu/GrTextureAccess.cpp View 3 chunks +1 line, -70 lines 0 comments Download
M src/gpu/gl/GrGLCaps.h View 1 2 6 chunks +14 lines, -5 lines 0 comments Download
M src/gpu/gl/GrGLCaps.cpp View 1 2 3 4 5 19 chunks +48 lines, -44 lines 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M src/gpu/gl/GrGLProgramDesc.cpp View 1 2 3 3 chunks +20 lines, -33 lines 0 comments Download
M src/gpu/glsl/GrGLSLCaps.h View 1 2 3 4 3 chunks +8 lines, -9 lines 0 comments Download
M src/gpu/glsl/GrGLSLCaps.cpp View 2 chunks +0 lines, -6 lines 0 comments Download
M src/gpu/glsl/GrGLSLShaderBuilder.cpp View 1 2 3 2 chunks +15 lines, -65 lines 0 comments Download
M src/gpu/glsl/GrGLSLTextureSampler.h View 1 chunk +0 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (14 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/1567733005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1567733005/20001
4 years, 11 months ago (2016-01-07 22:19:04 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Mips-Debug-Android-Trybot/builds/4410) Build-Ubuntu-GCC-x86_64-Release-Trybot on ...
4 years, 11 months ago (2016-01-07 22:19:48 UTC) #5
bsalomon
4 years, 11 months ago (2016-01-08 17:24:09 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/1567733005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1567733005/80001
4 years, 11 months ago (2016-01-08 17:39:56 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-08 17:55:00 UTC) #12
egdaniel
lgtm with minor comments https://codereview.chromium.org/1567733005/diff/80001/src/gpu/GrSwizzle.h File src/gpu/GrSwizzle.h (right): https://codereview.chromium.org/1567733005/diff/80001/src/gpu/GrSwizzle.h#newcode86 src/gpu/GrSwizzle.h:86: uint32_t* asUIntPtr() { return SkTCast<uint32_t*>(fSwiz); ...
4 years, 11 months ago (2016-01-08 19:02:49 UTC) #13
bsalomon
https://codereview.chromium.org/1567733005/diff/80001/src/gpu/GrSwizzle.h File src/gpu/GrSwizzle.h (right): https://codereview.chromium.org/1567733005/diff/80001/src/gpu/GrSwizzle.h#newcode86 src/gpu/GrSwizzle.h:86: uint32_t* asUIntPtr() { return SkTCast<uint32_t*>(fSwiz); } On 2016/01/08 19:02:49, ...
4 years, 11 months ago (2016-01-08 19:19:49 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1567733005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1567733005/100001
4 years, 11 months ago (2016-01-08 19:20:01 UTC) #17
bsalomon
https://codereview.chromium.org/1567733005/diff/80001/src/gpu/GrSwizzle.h File src/gpu/GrSwizzle.h (right): https://codereview.chromium.org/1567733005/diff/80001/src/gpu/GrSwizzle.h#newcode86 src/gpu/GrSwizzle.h:86: uint32_t* asUIntPtr() { return SkTCast<uint32_t*>(fSwiz); } On 2016/01/08 19:02:49, ...
4 years, 11 months ago (2016-01-08 19:31:54 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://skia.googlesource.com/skia/+/1a1efeacf7cc94a8c2977114dfe230fed3efc105
4 years, 11 months ago (2016-01-08 19:38:44 UTC) #20
mtklein
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/1569393002/ by mtklein@google.com. ...
4 years, 11 months ago (2016-01-08 20:11:15 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1567733005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1567733005/120001
4 years, 11 months ago (2016-01-08 20:59:49 UTC) #25
commit-bot: I haz the power
4 years, 11 months ago (2016-01-08 21:20:15 UTC) #27
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/cdee009886babe6df7743a9b5b3e2cc0a5f21adf

Powered by Google App Engine
This is Rietveld 408576698