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

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: Rebase. 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
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.h
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h
index 6bc2d84723399ac5fe6aa2ba2c0d0a370dbfa5ce..f9ec618996692697dc9b556337f6dd222cffa068 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; }
@@ -140,6 +141,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.
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698