Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(217)

Issue 5373064: Do writepixels alpha-premul using gpu (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by bsalomon
Modified:
12 years, 10 months ago
Reviewers:
TomH, reed1
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 7

Patch Set 2 : comments #

Patch Set 3 : comments #

Patch Set 4 : comments #

Patch Set 5 : rename #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -115 lines) Patch
M include/gpu/GrTypes.h View 1 1 chunk +7 lines, -4 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 1 chunk +8 lines, -1 line 0 comments Download
M src/gpu/GrGLProgram.h View 1 2 3 4 2 chunks +30 lines, -15 lines 0 comments Download
M src/gpu/GrGLProgram.cpp View 1 2 3 4 3 chunks +31 lines, -18 lines 0 comments Download
M src/gpu/GrGpuGL.cpp View 1 chunk +18 lines, -9 lines 0 comments Download
M src/gpu/GrGpuGLShaders.cpp View 1 2 3 4 6 chunks +64 lines, -45 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 2 chunks +2 lines, -22 lines 0 comments Download
M tests/WritePixelsTest.cpp View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 5
bsalomon
12 years, 10 months ago (2011-11-11 16:16:24 UTC) #1
reed1
lgtm w/ suggestion for a comment http://codereview.appspot.com/5373064/diff/1/src/gpu/GrDrawTarget.cpp File src/gpu/GrDrawTarget.cpp (left): http://codereview.appspot.com/5373064/diff/1/src/gpu/GrDrawTarget.cpp#oldcode814 src/gpu/GrDrawTarget.cpp:814: GrPixelConfigIsUnpremultiplied(fCurrDrawState.fTextures[s]->config())) { // ...
12 years, 10 months ago (2011-11-11 16:43:41 UTC) #2
TomH
Think about kPremul_InConfigFlag. If there isn't something better that jumps out at you, LGTM - ...
12 years, 10 months ago (2011-11-11 19:02:16 UTC) #3
bsalomon
http://codereview.appspot.com/5373064/diff/1/include/gpu/GrTypes.h File include/gpu/GrTypes.h (right): http://codereview.appspot.com/5373064/diff/1/include/gpu/GrTypes.h#newcode276 include/gpu/GrTypes.h:276: * has an unpremultiplied config only draws that use ...
12 years, 10 months ago (2011-11-11 19:34:55 UTC) #4
TomH
12 years, 10 months ago (2011-11-11 19:40:40 UTC) #5
On 2011/11/11 19:34:55, bsalomon wrote:
> On 2011/11/11 19:02:16, TomH wrote:
> > Although it makes sense here, seen in use without reading the header
comments
> > first Premul (or Alphamul) is very misleading. It's consistent with your
> naming
> > pattern, though, so may not need a redo.
> 
> I verbized it as kMulRGBByAlpha. Better/worse?

It's growing on me. Ship it.

Tom
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b