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

Issue 375823005: Remove gpu shader optimatization for solid white or trans black colors (Closed)

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

Description

Remove gpu shader optimatization for solid white or trans black colors Running test on the added bench which draws a grid of all white paths, all blue paths, or alternating checkered white/blue paths. With optimization in (ms): White Blue Checkered Linux ~80 ~80 ~160 N7 ~800 ~1100 ~1500 Moto-e ~830 ~1100 ~2500 Without optimization in (ms): White Blue Checkered Linux ~80 ~80 ~80 N7 ~1100 ~1100 ~1100 Moto-e ~1100 ~1100 ~1500 BUG=skia: Committed: https://skia.googlesource.com/skia/+/5f78d2251a440443c9eaa321dad058d7a32bfef7 Committed: https://skia.googlesource.com/skia/+/02cafcc1bf6e2968c2efdf459871167970da150e

Patch Set 1 #

Patch Set 2 : Turn off tracing flag #

Patch Set 3 : Add bench #

Patch Set 4 : Update bench to be more general #

Patch Set 5 : Remove old bench #

Total comments: 6

Patch Set 6 : Changes from comments #

Patch Set 7 : Fix int to scalar #

Patch Set 8 : Crash fix in bench deconst and fix random shader test creation #

Patch Set 9 : Check for skipCoverage flag #

Patch Set 10 : Updated version #

Patch Set 11 : Add back in bench and remove unneeded code #

Patch Set 12 : Add ignore gms #

Total comments: 1

Patch Set 13 : Change ignore function name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -31 lines) Patch
A bench/AlternatingColorPatternBench.cpp View 1 2 3 4 5 6 7 10 1 chunk +200 lines, -0 lines 0 comments Download
M expectations/gm/ignored-tests.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +12 lines, -0 lines 0 comments Download
M gyp/bench.gypi View 1 2 3 4 5 10 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrDrawState.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
M src/gpu/GrDrawState.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLProgram.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -8 lines 0 comments Download
M src/gpu/gl/GrGLProgramDesc.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M src/gpu/gl/GrGLProgramDesc.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -14 lines 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.cpp View 1 2 3 4 5 6 7 10 2 chunks +0 lines, -6 lines 0 comments Download
M src/gpu/gl/GrGpuGL_program.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download
M tests/GLProgramsTest.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
egdaniel
So here is the change for removing the solid white shader optimization. As you can ...
6 years, 5 months ago (2014-07-09 18:06:05 UTC) #1
bsalomon
I'm a little concerned about the drawBitmap case where the SkPaint has alpha=0xFF. We will ...
6 years, 5 months ago (2014-07-09 20:49:54 UTC) #2
egdaniel
I've updated the bench to include the ability to use both solid colors and bitmaps ...
6 years, 5 months ago (2014-07-11 13:57:11 UTC) #3
bsalomon
minor comments, otherwise lgtm. https://codereview.chromium.org/375823005/diff/80001/bench/AlternatingColorPatternBench.cpp File bench/AlternatingColorPatternBench.cpp (right): https://codereview.chromium.org/375823005/diff/80001/bench/AlternatingColorPatternBench.cpp#newcode22 bench/AlternatingColorPatternBench.cpp:22: SkColor fColor; Calling setAlpha on ...
6 years, 5 months ago (2014-07-11 14:29:53 UTC) #4
egdaniel
https://codereview.chromium.org/375823005/diff/80001/bench/AlternatingColorPatternBench.cpp File bench/AlternatingColorPatternBench.cpp (right): https://codereview.chromium.org/375823005/diff/80001/bench/AlternatingColorPatternBench.cpp#newcode22 bench/AlternatingColorPatternBench.cpp:22: SkColor fColor; Alpha field removed. On 2014/07/11 14:29:52, bsalomon ...
6 years, 5 months ago (2014-07-11 15:01:26 UTC) #5
egdaniel
The CQ bit was checked by egdaniel@google.com
6 years, 5 months ago (2014-07-11 15:01:35 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/egdaniel@google.com/375823005/60002
6 years, 5 months ago (2014-07-11 15:02:20 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: Build-Win7-VS2010-x86-Debug-Trybot on tryserver.skia ...
6 years, 5 months ago (2014-07-11 15:26:39 UTC) #8
egdaniel
The CQ bit was checked by egdaniel@google.com
6 years, 5 months ago (2014-07-11 15:37:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/egdaniel@google.com/375823005/110001
6 years, 5 months ago (2014-07-11 15:38:30 UTC) #10
commit-bot: I haz the power
Change committed as 5f78d2251a440443c9eaa321dad058d7a32bfef7
6 years, 5 months ago (2014-07-11 15:57:44 UTC) #11
egdaniel
A revert of this CL has been created in https://codereview.chromium.org/385163004/ by egdaniel@google.com. The reason for ...
6 years, 5 months ago (2014-07-11 16:12:53 UTC) #12
egdaniel
PTAL. The original commit failed for a couple reasons. First our random shader test was ...
6 years, 5 months ago (2014-07-14 16:12:07 UTC) #13
egdaniel
Working version of the optimization removal. Looking at the failed gm's from patch 11, all ...
6 years, 5 months ago (2014-07-21 13:33:08 UTC) #14
bsalomon
lgtm w/ name suggestion. https://codereview.chromium.org/375823005/diff/230001/src/gpu/GrDrawState.h File src/gpu/GrDrawState.h (right): https://codereview.chromium.org/375823005/diff/230001/src/gpu/GrDrawState.h#newcode557 src/gpu/GrDrawState.h:557: bool ignoreColorAttribute() const; Can we ...
6 years, 5 months ago (2014-07-21 14:28:51 UTC) #15
egdaniel
The CQ bit was checked by egdaniel@google.com
6 years, 5 months ago (2014-07-21 18:25:39 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/egdaniel@google.com/375823005/250001
6 years, 5 months ago (2014-07-21 18:26:12 UTC) #17
commit-bot: I haz the power
6 years, 5 months ago (2014-07-21 18:37:34 UTC) #18
Message was sent while issue was closed.
Change committed as 02cafcc1bf6e2968c2efdf459871167970da150e

Powered by Google App Engine
This is Rietveld 408576698