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

Issue 404473007: Cache the return values of getBlendOpts in GrDrawState (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

Cache the return values of getBlendOpts in GrDrawState BUG=skia: Committed: https://skia.googlesource.com/skia/+/9514d24fa512c9cd73548715ac36ad02f34151e8

Patch Set 1 #

Total comments: 4

Patch Set 2 : Review changes #

Total comments: 1

Patch Set 3 : Add invalidate function #

Patch Set 4 : Use one if in ARE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -9 lines) Patch
M src/gpu/GrDrawState.h View 1 2 3 17 chunks +50 lines, -6 lines 0 comments Download
M src/gpu/GrDrawState.cpp View 1 2 4 chunks +25 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
egdaniel
Please take at look at where I invalidate the cache. Do you notice any obvious ...
6 years, 5 months ago (2014-07-17 18:28:28 UTC) #1
bsalomon
I think the cache has to respect whether forceCoverage was set or not. Is it ...
6 years, 5 months ago (2014-07-17 18:41:03 UTC) #2
egdaniel
Addressed the comments. If forceCoverage is set to true we will simply calculate the BlendOpts ...
6 years, 5 months ago (2014-07-17 19:35:50 UTC) #3
bsalomon
lgtm https://codereview.chromium.org/404473007/diff/20001/src/gpu/GrDrawState.h File src/gpu/GrDrawState.h (right): https://codereview.chromium.org/404473007/diff/20001/src/gpu/GrDrawState.h#newcode407 src/gpu/GrDrawState.h:407: n = fDrawState->fCoverageStages.count() - fCoverageEffectCnt; int m = ...
6 years, 5 months ago (2014-07-17 19:53:50 UTC) #4
egdaniel
The CQ bit was checked by egdaniel@google.com
6 years, 5 months ago (2014-07-18 13:04:16 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/egdaniel@google.com/404473007/60001
6 years, 5 months ago (2014-07-18 13:05:06 UTC) #6
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 13:15:48 UTC) #7
Message was sent while issue was closed.
Change committed as 9514d24fa512c9cd73548715ac36ad02f34151e8

Powered by Google App Engine
This is Rietveld 408576698