summaryrefslogtreecommitdiffstats
path: root/chromium/gpu/ipc/in_process_command_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/gpu/ipc/in_process_command_buffer.h')
-rw-r--r--chromium/gpu/ipc/in_process_command_buffer.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/chromium/gpu/ipc/in_process_command_buffer.h b/chromium/gpu/ipc/in_process_command_buffer.h
index 869d11c43c7..e77221f8f9e 100644
--- a/chromium/gpu/ipc/in_process_command_buffer.h
+++ b/chromium/gpu/ipc/in_process_command_buffer.h
@@ -49,6 +49,9 @@
namespace gl {
class GLContext;
class GLShareGroup;
+#ifdef TOOLKIT_QT
+class GLFence;
+#endif
}
namespace gfx {
@@ -191,6 +194,14 @@ class GL_IN_PROCESS_CONTEXT_EXPORT InProcessCommandBuffer
gpu::SharedImageInterface* GetSharedImageInterface() const;
+#ifdef TOOLKIT_QT
+ using GetTextureCallback = base::OnceCallback<void(unsigned int, std::unique_ptr<gl::GLFence>)>;
+ void GetTextureQt(unsigned int client_id,
+ GetTextureCallback callback,
+ const std::vector<SyncToken>& sync_token_fences);
+ void GetTextureQtOnGpuThread(unsigned int client_id, GetTextureCallback callback);
+#endif
+
private:
class SharedImageInterface;