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

Unified Diff: cc/output/output_surface.h

Issue 2776923003: cc: Partial draw without partial swap support. (Closed)
Patch Set: avoid BufferQueue::RecreateBuffer changes Created 3 years, 8 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/output/gl_renderer_unittest.cc ('k') | cc/output/output_surface_frame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.h
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h
index d1715cbcdff4b45cdc50437272046a1d3e58ddfc..a1232dd1e6d60e64d6f6e0e35ecef78df97ce0c1 100644
--- a/cc/output/output_surface.h
+++ b/cc/output/output_surface.h
@@ -118,6 +118,10 @@ class CC_EXPORT OutputSurface {
// after returning from this method in order to unblock the next frame.
virtual void SwapBuffers(OutputSurfaceFrame frame) = 0;
+ // If this returns true, then partial draw of |damage| rect is supported
+ // by surface.
+ virtual bool CanPartialDraw(const gfx::Rect& damage) = 0;
+
protected:
struct OutputSurface::Capabilities capabilities_;
scoped_refptr<ContextProvider> context_provider_;
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/output_surface_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698