diff options
author | reveman@google.com <reveman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-17 01:40:30 +0000 |
---|---|---|
committer | reveman@google.com <reveman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-17 01:40:30 +0000 |
commit | 6820d79c2f8a865afdd48e51ea67691ebb7db816 (patch) | |
tree | 0fe808bc93d4faf22ae75c763cd8e55c6e032f35 /cc/test/fake_output_surface.h | |
parent | 875b7f7f612335372e4dfc0493d18d5df3b5c45a (diff) | |
download | chromium_src-6820d79c2f8a865afdd48e51ea67691ebb7db816.zip chromium_src-6820d79c2f8a865afdd48e51ea67691ebb7db816.tar.gz chromium_src-6820d79c2f8a865afdd48e51ea67691ebb7db816.tar.bz2 |
Revert 206020 "cc: Emulate BeginFrame in OutputSurfaces that don..."
This is causing pre-rendered pages to not load on android: crbug.com/249806
> 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
TBR=brianderson@chromium.org
Review URL: https://codereview.chromium.org/17204002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206655 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_output_surface.h')
-rw-r--r-- | cc/test/fake_output_surface.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cc/test/fake_output_surface.h b/cc/test/fake_output_surface.h index 7bc1a4f..d54ffd3 100644 --- a/cc/test/fake_output_surface.h +++ b/cc/test/fake_output_surface.h @@ -74,6 +74,7 @@ class FakeOutputSurface : public OutputSurface { bool needs_begin_frame() const { return needs_begin_frame_; } + void BeginFrame(base::TimeTicks frame_time); void set_forced_draw_to_software_device(bool forced) { forced_draw_to_software_device_ = forced; @@ -94,13 +95,10 @@ class FakeOutputSurface : public OutputSurface { scoped_ptr<SoftwareOutputDevice> software_device, bool delegated_rendering); - void OnBeginFrame(); - CompositorFrame last_sent_frame_; size_t num_sent_frames_; bool needs_begin_frame_; bool forced_draw_to_software_device_; - base::WeakPtrFactory<FakeOutputSurface> fake_weak_ptr_factory_; }; static inline scoped_ptr<cc::OutputSurface> CreateFakeOutputSurface() { |