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

Unified Diff: cc/output/compositor_frame_sink.h

Issue 2868473002: Implement aura::Window::CreateCompositorFrameSink() (Closed)
Patch Set: Address review issues Created 3 years, 7 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 | « no previous file | components/exo/BUILD.gn » ('j') | components/exo/surface.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/compositor_frame_sink.h
diff --git a/cc/output/compositor_frame_sink.h b/cc/output/compositor_frame_sink.h
index f8b7a47b4e6c97fc06934a4a4062377f270e1e45..296a5877d6e511317b4923cc6639de93c2ca50ff 100644
--- a/cc/output/compositor_frame_sink.h
+++ b/cc/output/compositor_frame_sink.h
@@ -16,6 +16,7 @@
#include "cc/output/overlay_candidate_validator.h"
#include "cc/output/vulkan_context_provider.h"
#include "cc/resources/returned_resource.h"
+#include "cc/surfaces/surface_id.h"
#include "gpu/command_buffer/common/texture_in_use_response.h"
#include "ui/gfx/color_space.h"
@@ -121,6 +122,10 @@ class CC_EXPORT CompositorFrameSink {
// processed in order to unthrottle the next frame.
virtual void SubmitCompositorFrame(CompositorFrame frame) = 0;
+ // Notify that the surface is no longer in use (and is okay to be evicted) so
+ // that its resources gets returned in time.
+ virtual void EvictFrame() {}
Fady Samuel 2017/05/08 18:17:35 We prefer pure virtual in cc.
Peng 2017/05/08 20:14:00 Tried it and found out making it pure will modify
+
protected:
// Bound to the ContextProvider to hear about when it is lost and inform the
// |client_|.
« no previous file with comments | « no previous file | components/exo/BUILD.gn » ('j') | components/exo/surface.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698