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

Unified Diff: cc/output/compositor_frame_sink.h

Issue 2868473002: Implement aura::Window::CreateCompositorFrameSink() (Closed)
Patch Set: Rebase 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 | cc/output/compositor_frame_sink.cc » ('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..dfe5fa17010dbf5a6cfaee75fbf9800382b1b9a9 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,13 @@ 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 15:52:09 Is this necessary? Can we avoid adding this?
Peng 2017/05/08 17:44:39 The exo need call this function to flush frames be
Fady Samuel 2017/05/08 18:17:35 OK Thanks.
+
+ // Get the current surface id.
+ virtual SurfaceId GetSurfaceId() const;
Fady Samuel 2017/05/08 15:52:09 Is this necessary, can we avoid adding this?
Peng 2017/05/08 17:44:39 Done
+
protected:
// Bound to the ContextProvider to hear about when it is lost and inform the
// |client_|.
« no previous file with comments | « no previous file | cc/output/compositor_frame_sink.cc » ('j') | components/exo/surface.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698