diff options
author | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-25 21:01:43 +0000 |
---|---|---|
committer | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-25 21:01:43 +0000 |
commit | 0036e3f4c3dfe1c5c553e3697e95e2f27dab81ce (patch) | |
tree | d11b8249b48d62035ea4a735fd0a151d3c3f0f84 /chrome/renderer/render_widget.h | |
parent | 3e39eaddf605708bf70cd138703a91de7e3372e0 (diff) | |
download | chromium_src-0036e3f4c3dfe1c5c553e3697e95e2f27dab81ce.zip chromium_src-0036e3f4c3dfe1c5c553e3697e95e2f27dab81ce.tar.gz chromium_src-0036e3f4c3dfe1c5c553e3697e95e2f27dab81ce.tar.bz2 |
Modify the RenderThread to track the number of widgets
and "hidden widgets" which are running through that thread.
By knowing the if the widgets are all hidden, the thread
can accurately inform V8 when it is idle so that V8 can
better cleanup unused memory when idle.
This time - if V8 has been killed for some reason, don't
call into it.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/173379
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24314 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_widget.h')
-rw-r--r-- | chrome/renderer/render_widget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/renderer/render_widget.h b/chrome/renderer/render_widget.h index 7987d28..ae54a55 100644 --- a/chrome/renderer/render_widget.h +++ b/chrome/renderer/render_widget.h @@ -151,6 +151,11 @@ class RenderWidget : public IPC::Channel::Listener, // browser side has updated the screen for a newly painted region. virtual void DidPaint() {} + // Sets the "hidden" state of this widget. All accesses to is_hidden_ should + // use this method so that we can properly inform the RenderThread of our + // state. + void SetHidden(bool hidden); + // True if a PaintRect_ACK message is pending. bool paint_reply_pending() const { return paint_reply_pending_; |