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

Issue 2916263002: Call glReleaseShaderCompiler when GLRenderer loses visibility. (Closed)

Created:
3 years, 6 months ago by aelias_OOO_until_Jul13
Modified:
3 years, 6 months ago
Reviewers:
piman
CC:
cc-bugs_chromium.org, chromium-reviews, Jamie Madill, Ken Russell (switch to Gerrit), Maria, piman, ssid, Zhenyao Mo, ericrk
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Call glReleaseShaderCompiler when GLRenderer loses visibility. This call is a hint that the driver should release RAM caches that it may have built to optimize shader compilation from strings. We should call it to save RAM when we expect that we will not be compiling any shaders anytime soon. The browser going into background is a simple, deterministic time where we can establish that. Notes: - On Android, visibility loss results in GLRenderer (and Display) destruction instead of a SetVisibility call, so also add a call in CleanupSharedObjects(). - I plan to hook up ANGLE ShaderTranslatorCache clearing to this signal in a later patch, as mentioned in the TODO in shader_translator_cache.h. BUG=725306, 725303 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2916263002 Cr-Commit-Position: refs/heads/master@{#476740} Committed: https://chromium.googlesource.com/chromium/src/+/620bb1e36c3e115f91473d366035acf7dc933ec4

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M cc/output/gl_renderer.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
aelias_OOO_until_Jul13
Hi piman@, PTAL.
3 years, 6 months ago (2017-06-02 01:31:28 UTC) #7
rclacy36a
On 2017/06/02 01:23:42, aelias wrote: > Description was changed from > > ========== > Call ...
3 years, 6 months ago (2017-06-02 03:29:37 UTC) #10
piman
lgtm
3 years, 6 months ago (2017-06-02 17:09:33 UTC) #11
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/2916263002/1
3 years, 6 months ago (2017-06-02 18:50:59 UTC) #13
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 18:56:06 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/620bb1e36c3e115f91473d366035...

Powered by Google App Engine
This is Rietveld 408576698