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

Unified Diff: cc/surfaces/surface_factory.h

Issue 2449853004: Getting rid of DelegatedFrameData (Closed)
Patch Set: doc Created 4 years, 1 month 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
Index: cc/surfaces/surface_factory.h
diff --git a/cc/surfaces/surface_factory.h b/cc/surfaces/surface_factory.h
index 3a6431596bc9cc470e8ef4fdbae1520988543e14..c24ab9b5cf7f14d5881f374744fcfec016ea1f7e 100644
--- a/cc/surfaces/surface_factory.h
+++ b/cc/surfaces/surface_factory.h
@@ -71,6 +71,10 @@ class CC_SURFACES_EXPORT SurfaceFactory {
void RequestCopyOfSurface(const LocalFrameId& local_frame_id,
std::unique_ptr<CopyOutputRequest> copy_request);
+ // Evicts the current frame on the surface, forcing all the resources
+ // to be released.
+ void ClearSurface(const LocalFrameId& local_frame_id);
+
void WillDrawSurface(const LocalFrameId& id, const gfx::Rect& damage_rect);
SurfaceFactoryClient* client() { return client_; }

Powered by Google App Engine
This is Rietveld 408576698