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

Issue 762923003: Add support for half float alpha textures. (Closed)

Created:
6 years ago by jvanverth1
Modified:
6 years ago
Reviewers:
bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Add support for half float alpha textures. This allows us to create distance field textures with better precision, which may help text quality. BUG=skia:3103 Committed: https://skia.googlesource.com/skia/+/28f9c606e4c8e61015e864219c4bc83a3fdb4a86

Patch Set 1 #

Patch Set 2 : Got half float texture test working #

Total comments: 6

Patch Set 3 : Address comments #

Total comments: 6

Patch Set 4 : Fix config setup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -4 lines) Patch
M include/gpu/GrColor.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M include/gpu/GrTypes.h View 1 2 4 chunks +10 lines, -1 line 0 comments Download
M src/core/SkHalf.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 chunks +3 lines, -1 line 0 comments Download
M src/gpu/gl/GrGLCaps.cpp View 1 2 3 3 chunks +29 lines, -1 line 0 comments Download
M src/gpu/gl/GrGLDefines.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGpuGL.cpp View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M tests/FloatingPointTextureTest.cpp View 1 2 chunks +58 lines, -1 line 0 comments Download

Messages

Total messages: 10 (2 generated)
jvanverth1
6 years ago (2014-12-04 19:47:55 UTC) #2
bsalomon
https://codereview.chromium.org/762923003/diff/20001/include/gpu/GrTypes.h File include/gpu/GrTypes.h (right): https://codereview.chromium.org/762923003/diff/20001/include/gpu/GrTypes.h#newcode413 include/gpu/GrTypes.h:413: static inline bool GrPixelConfigIsAlphaOnly(GrPixelConfig config) { update this? https://codereview.chromium.org/762923003/diff/20001/src/gpu/gl/GrGLCaps.cpp ...
6 years ago (2014-12-04 20:36:41 UTC) #3
jvanverth1
Addressed the issues below. I also found out that HALF_FLOAT has different values in OGL ...
6 years ago (2014-12-05 20:16:37 UTC) #4
bsalomon
https://codereview.chromium.org/762923003/diff/40001/src/gpu/gl/GrGLCaps.cpp File src/gpu/gl/GrGLCaps.cpp (right): https://codereview.chromium.org/762923003/diff/40001/src/gpu/gl/GrGLCaps.cpp#newcode485 src/gpu/gl/GrGLCaps.cpp:485: fConfigRenderSupport[kAlpha_half_GrPixelConfig][kNo_MSAA] = fTextureRedSupport; is fTextureREdSupport not already checked in ...
6 years ago (2014-12-05 20:21:27 UTC) #5
jvanverth1
https://codereview.chromium.org/762923003/diff/40001/src/gpu/gl/GrGLCaps.cpp File src/gpu/gl/GrGLCaps.cpp (right): https://codereview.chromium.org/762923003/diff/40001/src/gpu/gl/GrGLCaps.cpp#newcode485 src/gpu/gl/GrGLCaps.cpp:485: fConfigRenderSupport[kAlpha_half_GrPixelConfig][kNo_MSAA] = fTextureRedSupport; On 2014/12/05 20:21:27, bsalomon wrote: > ...
6 years ago (2014-12-05 20:31:41 UTC) #6
bsalomon
lgtm
6 years ago (2014-12-05 20:44:41 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/762923003/60001
6 years ago (2014-12-05 20:57:29 UTC) #9
commit-bot: I haz the power
6 years ago (2014-12-05 21:06:40 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/28f9c606e4c8e61015e864219c4bc83a3fdb4a86

Powered by Google App Engine
This is Rietveld 408576698