diff options
author | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-23 03:49:02 +0000 |
---|---|---|
committer | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-23 03:49:02 +0000 |
commit | 808f7fe7f54d770c411409d55a486437da664119 (patch) | |
tree | c31c85d40ae9ac7597902c32c6ec1d8be81c56c5 /content/gpu/gpu_watchdog_thread.h | |
parent | d8528c1042cb74073bea1a8adc0721be4c7eb64d (diff) | |
download | chromium_src-808f7fe7f54d770c411409d55a486437da664119.zip chromium_src-808f7fe7f54d770c411409d55a486437da664119.tar.gz chromium_src-808f7fe7f54d770c411409d55a486437da664119.tar.bz2 |
Check the GPU watchdog after processing every 3D command.
Reduce the chance that a long stream of expensive 3D commands will cause the watchdog to go off by checking the watchdog after every 3D command.
BUG=76603
TEST=none
Review URL: http://codereview.chromium.org/6715006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79097 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/gpu/gpu_watchdog_thread.h')
-rw-r--r-- | content/gpu/gpu_watchdog_thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/gpu/gpu_watchdog_thread.h b/content/gpu/gpu_watchdog_thread.h index b0812a6..c59a915 100644 --- a/content/gpu/gpu_watchdog_thread.h +++ b/content/gpu/gpu_watchdog_thread.h @@ -23,6 +23,7 @@ class GpuWatchdogThread : public base::Thread, // Accessible on watched thread but only modified by watchdog thread. bool armed() const { return armed_; } void PostAcknowledge(); + void CheckArmed(); protected: virtual void Init(); @@ -42,7 +43,6 @@ class GpuWatchdogThread : public base::Thread, virtual void DidProcessTask(const Task* task); private: - void CheckArmed(); GpuWatchdogThread* watchdog_; }; |