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

Unified Diff: cc/output_surface.h

Issue 12371002: [cc] Mailbox Output Surface Support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « cc/layer_tree_host.cc ('k') | cc/output_surface.cc » ('j') | cc/switches.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output_surface.h
diff --git a/cc/output_surface.h b/cc/output_surface.h
index de075e2b7dff79ae1b65b3028b8dfd1533147e28..f77ba2bab2efb2a52d6002eb8b984236e08b80d3 100644
--- a/cc/output_surface.h
+++ b/cc/output_surface.h
@@ -13,6 +13,11 @@
#include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorOutputSurface.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3D.h"
+namespace gfx {
+class Rect;
+class Size;
+}
+
namespace cc {
class CompositorFrame;
@@ -70,6 +75,16 @@ class CC_EXPORT OutputSurface : public WebKit::WebCompositorOutputSurface {
// steal the contents of the CompositorFrame passed in.
virtual void SendFrameToParentCompositor(CompositorFrame*);
+ virtual void EnsureBackbuffer();
+ virtual void DiscardBackbuffer();
+
+ virtual void Reshape(const gfx::Size& size);
danakj 2013/02/28 03:57:44 nit: pass Size/Point/Rect/Vector2d/SizeF/PointF by
no sievers 2013/02/28 18:43:40 Done.
+
+ virtual void BindFramebuffer();
+
+ virtual void PostSubBuffer(const gfx::Rect& rect);
danakj 2013/02/28 03:57:44 nit: by value
no sievers 2013/02/28 18:43:40 Done.
+ virtual void SwapBuffers();
+
// Notifies frame-rate smoothness preference. If true, all non-critical
// processing should be stopped, or lowered in priority.
virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {}
@@ -79,6 +94,7 @@ class CC_EXPORT OutputSurface : public WebKit::WebCompositorOutputSurface {
struct cc::OutputSurface::Capabilities capabilities_;
scoped_ptr<WebKit::WebGraphicsContext3D> context3d_;
scoped_ptr<cc::SoftwareOutputDevice> software_device_;
+ bool has_gl_discard_backbuffer_;
danakj 2013/02/28 03:57:44 nit: extra space
no sievers 2013/02/28 18:43:40 Done.
};
} // namespace cc
« no previous file with comments | « cc/layer_tree_host.cc ('k') | cc/output_surface.cc » ('j') | cc/switches.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698