From 2921d041901fca3ad1c9c1daea87e2b4269e4218 Mon Sep 17 00:00:00 2001 From: "danakj@chromium.org" Date: Fri, 10 May 2013 05:01:39 +0000 Subject: cc: Don't do CompositeAndReadback when using DelegatingRenderer. The renderer can't do a readback, so don't both to draw anything for no reason. And return false to inform the caller than it failed. R=piman BUG=123444 Review URL: https://chromiumcodereview.appspot.com/14960006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199377 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/output/delegating_renderer.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cc/output/delegating_renderer.h') diff --git a/cc/output/delegating_renderer.h b/cc/output/delegating_renderer.h index 813be91..6e659c0 100644 --- a/cc/output/delegating_renderer.h +++ b/cc/output/delegating_renderer.h @@ -7,6 +7,7 @@ #include "base/memory/scoped_ptr.h" #include "cc/base/cc_export.h" +#include "cc/output/compositor_frame.h" #include "cc/output/renderer.h" #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3D.h" @@ -25,6 +26,8 @@ class CC_EXPORT DelegatingRenderer : public Renderer { virtual const RendererCapabilities& Capabilities() const OVERRIDE; + virtual bool CanReadPixels() const OVERRIDE; + virtual void DrawFrame(RenderPassList* render_passes_in_draw_order) OVERRIDE; virtual void Finish() OVERRIDE {} @@ -52,8 +55,8 @@ class CC_EXPORT DelegatingRenderer : public Renderer { OutputSurface* output_surface_; ResourceProvider* resource_provider_; RendererCapabilities capabilities_; + CompositorFrame frame_for_swap_buffers_; bool visible_; - RenderPassList render_passes_for_swap_buffers_; DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); }; -- cgit v1.1