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

Issue 2307053002: Restructure flushing relationship between GrContext, GrDrawingManager, and GrResourceCache. (Closed)

Created:
4 years, 3 months ago by bsalomon
Modified:
4 years, 3 months ago
Reviewers:
robertphillips
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Restructure flushing relationship between GrContext, GrDrawingManager, and GrResourceCache. Consolidates all flush actions into GrDrawingManager and makes GrContext::flush a passthrough. Removes the unused and untested discard flush variation. Replaces the indirect overbudget callback mechanism of GrResourceCache with a flag set by resource cache when it wants to flush that is checked after each draw by GrDrawContext. Modifies GrResourceCache::notifyFlushOccurred() to take a param indicating whether it triggered the flush that just occurred. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2307053002 Committed: https://skia.googlesource.com/skia/+/1dbb207babecdae8f1f74ed9d9900c73064df744 Committed: https://skia.googlesource.com/skia/+/b77a907c2fb4402b7e70e9fff70eb71482354e67

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 5

Patch Set 3 : Address comments #

Patch Set 4 : fix whitespace #

Patch Set 5 : Fix uninit vars #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -106 lines) Patch
M include/gpu/GrContext.h View 1 2 3 chunks +1 line, -30 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 4 chunks +7 lines, -28 lines 0 comments Download
M src/gpu/GrDrawContext.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrDrawingManager.h View 1 2 3 4 4 chunks +16 lines, -4 lines 0 comments Download
M src/gpu/GrDrawingManager.cpp View 1 2 3 3 chunks +9 lines, -4 lines 0 comments Download
M src/gpu/GrResourceCache.h View 1 2 3 chunks +11 lines, -18 lines 0 comments Download
M src/gpu/GrResourceCache.cpp View 1 2 3 4 3 chunks +23 lines, -15 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M tests/ResourceCacheTest.cpp View 4 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
bsalomon
4 years, 3 months ago (2016-09-02 14:53:43 UTC) #5
robertphillips
lgtm https://codereview.chromium.org/2307053002/diff/20001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/2307053002/diff/20001/include/gpu/GrContext.h#newcode375 include/gpu/GrContext.h:375: // Set by OverbudgetCB() to request that GrContext ...
4 years, 3 months ago (2016-09-02 16:23:06 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2307053002/60001
4 years, 3 months ago (2016-09-06 19:13:23 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://skia.googlesource.com/skia/+/1dbb207babecdae8f1f74ed9d9900c73064df744
4 years, 3 months ago (2016-09-06 19:38:08 UTC) #11
bsalomon
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2312123003/ by bsalomon@google.com. ...
4 years, 3 months ago (2016-09-06 20:49:19 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2307053002/80001
4 years, 3 months ago (2016-09-07 16:21:42 UTC) #16
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 17:02:07 UTC) #18
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/b77a907c2fb4402b7e70e9fff70eb71482354e67

Powered by Google App Engine
This is Rietveld 408576698