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

Issue 13314002: Add support for reading the dst pixel value in an effect. Use in a new effect for the kDarken xfer … (Closed)

Created:
7 years, 8 months ago by bsalomon
Modified:
7 years, 8 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Add support for reading the dst pixel value in an effect. Use in a new effect for the kDarken xfer mode. The current implementation is to always make a copy of the entire dst before the draw. It will only succeed if the RT is also a texture. Obviously, there is lots of room for improvement. Committed: https://code.google.com/p/skia/source/detail?r=8449

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 20

Patch Set 4 : Fix some of the linter's nits #

Total comments: 8

Patch Set 5 : Address comments #

Patch Set 6 : Address more comments #

Patch Set 7 : wrap shader text line #

Patch Set 8 : Fix linux warnings #

Patch Set 9 : Revert whitespace/comment changes accidentally made in GrGLProgramDesc.cpp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+518 lines, -91 lines) Patch
M include/core/SkXfermode.h View 1 2 3 4 5 6 7 1 chunk +12 lines, -4 lines 0 comments Download
M include/gpu/GrEffect.h View 1 2 3 4 5 6 7 5 chunks +11 lines, -2 lines 0 comments Download
M include/gpu/GrTexture.h View 1 2 3 4 5 6 7 2 chunks +39 lines, -0 lines 0 comments Download
M src/core/SkXfermode.cpp View 1 2 3 4 5 6 7 3 chunks +105 lines, -10 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 2 3 4 5 6 7 2 chunks +25 lines, -10 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 4 5 6 7 6 chunks +72 lines, -0 lines 0 comments Download
M src/gpu/GrGpu.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/GrGpu.cpp View 1 2 3 4 5 6 7 3 chunks +5 lines, -4 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 7 1 chunk +14 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGLProgram.h View 1 2 3 4 5 6 7 3 chunks +16 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGLProgram.cpp View 1 2 3 4 5 6 7 11 chunks +58 lines, -21 lines 0 comments Download
M src/gpu/gl/GrGLProgramDesc.h View 1 2 3 4 5 6 7 5 chunks +13 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGLProgramDesc.cpp View 1 2 3 4 5 6 7 8 4 chunks +14 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.h View 1 2 3 4 5 6 7 9 chunks +42 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.cpp View 1 2 3 4 5 6 7 5 chunks +85 lines, -20 lines 0 comments Download
M src/gpu/gl/GrGpuGL.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGpuGL_program.cpp View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
bsalomon
7 years, 8 months ago (2013-03-29 18:05:31 UTC) #1
robertphillips
lgtm + nits https://codereview.chromium.org/13314002/diff/17001/src/core/SkXfermode.cpp File src/core/SkXfermode.cpp (right): https://codereview.chromium.org/13314002/diff/17001/src/core/SkXfermode.cpp#newcode952 src/core/SkXfermode.cpp:952: // TODO: Make this work for ...
7 years, 8 months ago (2013-03-29 18:32:57 UTC) #2
jvanverth1
I think the first comment needs to be fixed, otherwise the rest are nits. https://codereview.chromium.org/13314002/diff/27002/src/core/SkXfermode.cpp ...
7 years, 8 months ago (2013-03-29 18:46:22 UTC) #3
bsalomon
https://codereview.chromium.org/13314002/diff/17001/src/core/SkXfermode.cpp File src/core/SkXfermode.cpp (right): https://codereview.chromium.org/13314002/diff/17001/src/core/SkXfermode.cpp#newcode952 src/core/SkXfermode.cpp:952: // TODO: Make this work for all non-Coeff SkXfermode::Mode ...
7 years, 8 months ago (2013-03-29 18:59:38 UTC) #4
bsalomon
Add support for reading the dst pixel value in an effect. Use in a new ...
7 years, 8 months ago (2013-03-29 19:11:23 UTC) #5
jvanverth1
lgtm
7 years, 8 months ago (2013-03-29 19:19:09 UTC) #6
bsalomon
7 years, 8 months ago (2013-03-29 19:22:45 UTC) #7
Message was sent while issue was closed.
Committed patchset #9 manually as r8449 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698