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

Issue 6473060: Do premul and r/b swap conversions in a custom effect (Closed)

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

Patch Set 1 #

Patch Set 2 : update #

Patch Set 3 : update #

Total comments: 18

Patch Set 4 : svn update / address comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+617 lines, -418 lines) Patch
M gyp/gpu.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M include/gpu/GrContext.h View 1 2 3 8 chunks +61 lines, -6 lines 0 comments Download
M include/gpu/GrSamplerState.h View 1 2 3 5 chunks +0 lines, -19 lines 2 comments Download
M src/gpu/GrContext.cpp View 1 2 3 9 chunks +236 lines, -126 lines 0 comments Download
M src/gpu/GrDrawState.h View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
M src/gpu/GrGpu.h View 1 2 3 2 chunks +3 lines, -14 lines 0 comments Download
A src/gpu/effects/GrConfigConversionEffect.h View 1 2 3 1 chunk +72 lines, -0 lines 0 comments Download
A src/gpu/effects/GrConfigConversionEffect.cpp View 1 2 3 1 chunk +231 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLProgram.h View 1 2 3 3 chunks +6 lines, -43 lines 0 comments Download
M src/gpu/gl/GrGLProgram.cpp View 1 2 3 2 chunks +0 lines, -49 lines 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.cpp View 1 2 3 1 chunk +1 line, -13 lines 0 comments Download
M src/gpu/gl/GrGpuGL.h View 1 2 3 2 chunks +0 lines, -13 lines 0 comments Download
M src/gpu/gl/GrGpuGL.cpp View 1 2 3 3 chunks +0 lines, -87 lines 0 comments Download
M src/gpu/gl/GrGpuGL_program.cpp View 1 2 3 2 chunks +0 lines, -27 lines 0 comments Download
M tests/GLProgramsTest.cpp View 1 2 3 5 chunks +2 lines, -11 lines 0 comments Download
M tests/WritePixelsTest.cpp View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 7
bsalomon
Sorry for the big CL :( Passes all the unit tests.
12 years, 3 months ago (2012-08-24 21:50:23 UTC) #1
TomH
Exciting...
12 years, 3 months ago (2012-08-24 21:59:00 UTC) #2
robertphillips
LGTM with minor questions & comment suggestions http://codereview.appspot.com/6473060/diff/9002/include/gpu/GrSamplerState.h File include/gpu/GrSamplerState.h (left): http://codereview.appspot.com/6473060/diff/9002/include/gpu/GrSamplerState.h#oldcode103 include/gpu/GrSamplerState.h:103: bool operator ...
12 years, 3 months ago (2012-08-27 12:19:23 UTC) #3
bsalomon
Checked in at r5284. https://codereview.appspot.com/6473060/diff/9002/include/gpu/GrSamplerState.h File include/gpu/GrSamplerState.h (left): https://codereview.appspot.com/6473060/diff/9002/include/gpu/GrSamplerState.h#oldcode103 include/gpu/GrSamplerState.h:103: bool operator ==(const GrSamplerState& s) ...
12 years, 3 months ago (2012-08-27 12:53:37 UTC) #4
bsalomon
Closed with r5284.
12 years, 3 months ago (2012-08-28 15:22:35 UTC) #5
TomH
https://codereview.appspot.com/6473060/diff/12002/include/gpu/GrSamplerState.h File include/gpu/GrSamplerState.h (left): https://codereview.appspot.com/6473060/diff/12002/include/gpu/GrSamplerState.h#oldcode124 include/gpu/GrSamplerState.h:124: fSwapRAndB = s.fSwapRAndB; Were we not copying fPremultiply here? ...
12 years, 3 months ago (2012-09-07 09:21:37 UTC) #6
bsalomon
12 years, 3 months ago (2012-09-07 12:32:12 UTC) #7
https://codereview.appspot.com/6473060/diff/12002/include/gpu/GrSamplerState.h
File include/gpu/GrSamplerState.h (left):

https://codereview.appspot.com/6473060/diff/12002/include/gpu/GrSamplerState....
include/gpu/GrSamplerState.h:124: fSwapRAndB = s.fSwapRAndB;
On 2012/09/07 09:21:37, TomH wrote:
> Were we not copying fPremultiply here? And yet we saw no bugs?

I think it was only being used with draws that went directly to GrGpu, not to
GrIODB. So the draw state wasn't getting copied when fPremultiply was true.
Also, this code was very short-lived. It was an interim step to getting the
conversion custom effect in place.
Sign in to reply to this message.

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