diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-16 03:41:00 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-16 03:41:00 +0000 |
commit | 05469638c90c61f273420773ab3139d4286a7fb0 (patch) | |
tree | 06c32018843396f67cc7e71ef7ffecde9faec103 /cc/test/fake_output_surface.h | |
parent | 658ce05d1f2ec2717f3c00c9b21934373010ca35 (diff) | |
download | chromium_src-05469638c90c61f273420773ab3139d4286a7fb0.zip chromium_src-05469638c90c61f273420773ab3139d4286a7fb0.tar.gz chromium_src-05469638c90c61f273420773ab3139d4286a7fb0.tar.bz2 |
cc: Implement DelegatingRender::drawFrame() method.
The method sends the render passes it is given to the parent compositor via
the output surface. It should include a valid frame metadata with it.
Tests:
DelegatingRendererTestDraw.runSingleThread
DelegatingRendererTestDraw.runMultiThread
DelegatingRendererTestResources.runSingleThread
DelegatingRendererTestResources.runMultiThread
R=piman
BUG=123444
Review URL: https://codereview.chromium.org/11777025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177073 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_output_surface.h')
-rw-r--r-- | cc/test/fake_output_surface.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cc/test/fake_output_surface.h b/cc/test/fake_output_surface.h index d843cca..0cfb41f 100644 --- a/cc/test/fake_output_surface.h +++ b/cc/test/fake_output_surface.h @@ -7,6 +7,7 @@ #include "base/logging.h" #include "base/memory/scoped_ptr.h" +#include "cc/compositor_frame.h" #include "cc/output_surface.h" #include "cc/test/fake_software_output_device.h" #include "cc/test/fake_web_graphics_context_3d.h" @@ -47,7 +48,10 @@ class FakeOutputSurface : public OutputSurface { virtual WebKit::WebGraphicsContext3D* Context3D() const OVERRIDE; virtual SoftwareOutputDevice* SoftwareDevice() const OVERRIDE; - virtual void SendFrameToParentCompositor(const CompositorFrame&) OVERRIDE; + virtual void SendFrameToParentCompositor(CompositorFrame*) OVERRIDE; + + CompositorFrame& last_sent_frame() { return last_sent_frame_; } + size_t num_sent_frames() { return num_sent_frames_; } private: explicit FakeOutputSurface( @@ -59,6 +63,8 @@ private: scoped_ptr<SoftwareOutputDevice> software_device_; struct Capabilities capabilities_; OutputSurfaceClient* client_; + CompositorFrame last_sent_frame_; + size_t num_sent_frames_; }; static inline scoped_ptr<cc::OutputSurface> createFakeOutputSurface() |