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

Unified Diff: cc/output/output_surface.h

Issue 2061993003: Pass responsibility for IOSurface-texture reuse to the gpu process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp85_query_in_use
Patch Set: Compile errors. Created 4 years, 6 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: cc/output/output_surface.h
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h
index 879f29733ce3740da39d09985dcd335d1757539f..d09fab4c615c6ac6838b430ab5d318561c6edb6c 100644
--- a/cc/output/output_surface.h
+++ b/cc/output/output_surface.h
@@ -17,6 +17,7 @@
#include "cc/output/overlay_candidate_validator.h"
#include "cc/output/software_output_device.h"
#include "cc/output/vulkan_context_provider.h"
+#include "gpu/command_buffer/common/texture_in_use_response.h"
namespace base { class SingleThreadTaskRunner; }
@@ -137,6 +138,12 @@ class CC_EXPORT OutputSurface : public base::trace_event::MemoryDumpProvider {
virtual void SwapBuffers(CompositorFrame* frame) = 0;
virtual void OnSwapBuffersComplete();
+ // Called by subclasses after receiving a response from the gpu process to a
+ // query about whether a given set of textures is still in use by the OS
+ // compositor.
+ void DidReceiveTextureInUseResponses(
+ const gpu::TextureInUseResponses& responses);
+
bool HasClient() { return !!client_; }
// Get the class capable of informing cc of hardware overlay capability.

Powered by Google App Engine
This is Rietveld 408576698