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

Unified Diff: cc/output/output_surface.h

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/delegating_renderer.cc ('k') | cc/resources/display_item.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 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
« no previous file with comments | « cc/output/delegating_renderer.cc ('k') | cc/resources/display_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698