diff options
author | brianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-13 06:59:20 +0000 |
---|---|---|
committer | brianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-13 06:59:20 +0000 |
commit | 107fc127f06ac9d14ec1f68fae13077ab968c13a (patch) | |
tree | f925112610e38f7b1820c392b8356a8603aecd24 /cc/test/scheduler_test_common.h | |
parent | 96d89f8411a85509c890f30d2dbb841211c31362 (diff) | |
download | chromium_src-107fc127f06ac9d14ec1f68fae13077ab968c13a.zip chromium_src-107fc127f06ac9d14ec1f68fae13077ab968c13a.tar.gz chromium_src-107fc127f06ac9d14ec1f68fae13077ab968c13a.tar.bz2 |
cc: Emulate BeginFrame in OutputSurfaces that don't support it natively
This includes two small fixes for the original version of this
patch that broke software compositing and WebView.
This will allow us to avoid having two different code paths
in the Scheduler. It also allows us to more easily remove the
VSyncTimeSource and FrameRateController from the Scheduler.
This patch instantiates the FrameRateController inside of
OutputSurface for now, but the FrameRateController could be
removed in future patches.
BUG=245920
BUG=243497
TBR=nduca@chromium.org,sievers@chromium.org,kbr@chromium.org
Review URL: https://chromiumcodereview.appspot.com/16833003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206020 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/scheduler_test_common.h')
-rw-r--r-- | cc/test/scheduler_test_common.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/cc/test/scheduler_test_common.h b/cc/test/scheduler_test_common.h index b3b2c2d..8834e62 100644 --- a/cc/test/scheduler_test_common.h +++ b/cc/test/scheduler_test_common.h @@ -62,36 +62,6 @@ class FakeThread : public cc::Thread { bool run_pending_task_on_overwrite_; }; -class FakeTimeSource : public cc::TimeSource { - public: - FakeTimeSource() : active_(false), client_(0) {} - - virtual void SetClient(cc::TimeSourceClient* client) OVERRIDE; - virtual void SetActive(bool b) OVERRIDE; - virtual bool Active() const OVERRIDE; - virtual void SetTimebaseAndInterval(base::TimeTicks timebase, - base::TimeDelta interval) OVERRIDE {} - virtual base::TimeTicks LastTickTime() OVERRIDE; - virtual base::TimeTicks NextTickTime() OVERRIDE; - - void Tick() { - ASSERT_TRUE(active_); - if (client_) - client_->OnTimerTick(); - } - - void SetNextTickTime(base::TimeTicks next_tick_time) { - next_tick_time_ = next_tick_time; - } - - protected: - virtual ~FakeTimeSource() {} - - bool active_; - base::TimeTicks next_tick_time_; - cc::TimeSourceClient* client_; -}; - class FakeDelayBasedTimeSource : public cc::DelayBasedTimeSource { public: static scoped_refptr<FakeDelayBasedTimeSource> Create( |