Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Unified Diff: cc/output/delegating_renderer.h

Issue 14960006: cc: Don't do CompositeAndReadback when using DelegatingRenderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/output/delegating_renderer.cc » ('j') | cc/trees/thread_proxy.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/delegating_renderer.h
diff --git a/cc/output/delegating_renderer.h b/cc/output/delegating_renderer.h
index 813be91504430e701eed3989b9f3d2cbb5ba26bf..6e659c06cab458546f4c1109b3480c6404090cfb 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);
};
« no previous file with comments | « no previous file | cc/output/delegating_renderer.cc » ('j') | cc/trees/thread_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698