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

Issue 874353007: cc: Remove SkSurface cache from Resource (Closed)

Created:
5 years, 11 months ago by hendrikw
Modified:
5 years, 10 months ago
Reviewers:
reveman, vmiura
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Remove SkSurface cache from Resource The SkSurface that was being cached within the Resource was being held and counted against skia's budget. cc's budget is 512MB, and skia's is ~100MB, so cc would always blow skia's budget. In the case of the ugam page, we would end up redecoding, reupload and regenerating all of the mip maps for each of the images on every frame. Solution is to stop caching the SkSurface. Additionally, we should investigate if this situation should even be counted against skia's budget. See crbug.com/452344 BUG=452138 BUG=447291 Committed: https://crrev.com/1e20542a1645750a019d0b482754cb8c8a29c413 Cr-Commit-Position: refs/heads/master@{#313547}

Patch Set 1 #

Total comments: 1

Patch Set 2 : renamed function from Get to Create #

Total comments: 1

Patch Set 3 : move sksurface into lock #

Total comments: 1

Patch Set 4 : merge and move surface creation into constructor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -59 lines) Patch
M cc/resources/gpu_rasterizer.cc View 1 2 3 1 chunk +6 lines, -7 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 2 chunks +6 lines, -8 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 2 chunks +24 lines, -44 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
hendrikw
PTAL. I'd like to check telemetry to see if it impacts performance that much (if ...
5 years, 11 months ago (2015-01-27 02:41:52 UTC) #2
reveman
https://codereview.chromium.org/874353007/diff/1/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/874353007/diff/1/cc/resources/resource_provider.h#newcode339 cc/resources/resource_provider.h:339: bool can_use_lcd_text); Does this have to return a RefPtr? ...
5 years, 11 months ago (2015-01-27 13:10:14 UTC) #3
hendrikw
On 2015/01/27 13:10:14, reveman (OOO Jan 28 - Feb 9) wrote: > https://codereview.chromium.org/874353007/diff/1/cc/resources/resource_provider.h > File ...
5 years, 11 months ago (2015-01-27 16:46:59 UTC) #4
hendrikw
Renamed function, PTAL, thanks!
5 years, 11 months ago (2015-01-27 16:50:59 UTC) #5
danakj
On 2015/01/27 16:50:59, hendrikw wrote: > Renamed function, PTAL, thanks! Sounds like Brian has an ...
5 years, 11 months ago (2015-01-27 17:29:55 UTC) #6
hendrikw
On 2015/01/27 17:29:55, danakj wrote: > On 2015/01/27 16:50:59, hendrikw wrote: > > Renamed function, ...
5 years, 11 months ago (2015-01-27 17:32:36 UTC) #7
reveman
I like the idea of removing the caching of surfaces if it's no longer necessary. ...
5 years, 11 months ago (2015-01-27 21:29:05 UTC) #8
hendrikw
PTAL, I've moved the sksurface into the lock.
5 years, 11 months ago (2015-01-27 22:30:57 UTC) #9
reveman
lgtm https://codereview.chromium.org/874353007/diff/40001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/874353007/diff/40001/cc/resources/resource_provider.cc#newcode1105 cc/resources/resource_provider.cc:1105: bool can_use_lcd_text) { No need to change this ...
5 years, 11 months ago (2015-01-27 22:40:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/874353007/40001
5 years, 11 months ago (2015-01-27 22:52:58 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/115956) android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/52482) android_arm64_dbg_recipe ...
5 years, 11 months ago (2015-01-27 22:58:20 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/874353007/60001
5 years, 10 months ago (2015-01-28 17:34:25 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-01-28 18:44:08 UTC) #17
commit-bot: I haz the power
5 years, 10 months ago (2015-01-28 18:45:08 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1e20542a1645750a019d0b482754cb8c8a29c413
Cr-Commit-Position: refs/heads/master@{#313547}

Powered by Google App Engine
This is Rietveld 408576698