Index: cc/output/output_surface.h |
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h |
index 04bd4a336bec02a068c91da89ef8eef57281e283..29e32a5317ef3c61f2b329f6a390d1eb0d0f115f 100644 |
--- a/cc/output/output_surface.h |
+++ b/cc/output/output_surface.h |
@@ -64,7 +64,8 @@ class CC_EXPORT OutputSurface { |
draw_and_swap_full_viewport_every_frame(false), |
adjust_deadline_for_parent(true), |
uses_default_gl_framebuffer(true), |
- flipped_output_surface(false) {} |
+ flipped_output_surface(false), |
+ can_force_reclaim_resources(false) {} |
bool delegated_rendering; |
int max_frames_pending; |
bool deferred_gl_initialization; |
@@ -77,6 +78,9 @@ class CC_EXPORT OutputSurface { |
bool uses_default_gl_framebuffer; |
// Whether this OutputSurface is flipped or not. |
bool flipped_output_surface; |
+ // Whether ForceReclaimResources can be called to reclaim all resources |
+ // from the OutputSurface. |
+ bool can_force_reclaim_resources; |
}; |
const Capabilities& capabilities() const { |
@@ -111,6 +115,10 @@ class CC_EXPORT OutputSurface { |
virtual void Reshape(const gfx::Size& size, float scale_factor); |
virtual gfx::Size SurfaceSize() const; |
+ // If supported, this causes a ReclaimResources for all resources that are |
+ // currently in use. |
+ virtual void ForceReclaimResources() {} |
+ |
virtual void BindFramebuffer(); |
// The implementation may destroy or steal the contents of the CompositorFrame |