summaryrefslogtreecommitdiffstats
path: root/cc/output/delegating_renderer.h
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-10 05:01:39 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-10 05:01:39 +0000
commit2921d041901fca3ad1c9c1daea87e2b4269e4218 (patch)
treec01ec43803f6d478ef15805eac7159c10b1b3b56 /cc/output/delegating_renderer.h
parentad77729570c4a6a25824016f44631d26909cf16e (diff)
downloadchromium_src-2921d041901fca3ad1c9c1daea87e2b4269e4218.zip
chromium_src-2921d041901fca3ad1c9c1daea87e2b4269e4218.tar.gz
chromium_src-2921d041901fca3ad1c9c1daea87e2b4269e4218.tar.bz2
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
Diffstat (limited to 'cc/output/delegating_renderer.h')
-rw-r--r--cc/output/delegating_renderer.h5
1 files changed, 4 insertions, 1 deletions
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);
};