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

Unified Diff: components/view_manager/public/cpp/view_manager_delegate.h

Issue 1281663002: Mandoline: Allow submitting CompositorFrames directly to mojo::Views (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a TODO Created 5 years, 4 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
Index: components/view_manager/public/cpp/view_manager_delegate.h
diff --git a/components/view_manager/public/cpp/view_manager_delegate.h b/components/view_manager/public/cpp/view_manager_delegate.h
index d7534d72873664e70ac786e453883dde3b6da654..8e812ec2753b0b3b4d8a9220d0e22e5920b946d7 100644
--- a/components/view_manager/public/cpp/view_manager_delegate.h
+++ b/components/view_manager/public/cpp/view_manager_delegate.h
@@ -50,6 +50,13 @@ class ViewManagerDelegate {
// notified appropriately).
virtual void OnUnembed();
+ // Sent when GPU resources are returned to the client for reuse.
+ // TODO(fsamuel): This ends up on the main thread. We need a separate
+ // interface for returned resources so we can return resources on the
+ // compositor thread
+ virtual void OnResourcesReturned(
+ mojo::Array<mojo::ReturnedResourcePtr> resources);
+
// Only invoked if the connection has been marked as an embed root. This
// allows the delegate to disallow the embed (return false), or change
// the ServiceProviders that would be exposed to the new client.

Powered by Google App Engine
This is Rietveld 408576698