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

Unified Diff: gpu/command_buffer/common/texture_in_use_response.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 | « gpu/command_buffer/common/BUILD.gn ('k') | gpu/command_buffer_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/texture_in_use_response.h
diff --git a/gpu/command_buffer/common/texture_in_use_response.h b/gpu/command_buffer/common/texture_in_use_response.h
new file mode 100644
index 0000000000000000000000000000000000000000..b3e6d73f4025a413db7b2bfb133d01422e1f8f24
--- /dev/null
+++ b/gpu/command_buffer/common/texture_in_use_response.h
@@ -0,0 +1,27 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef GPU_COMMAND_BUFFER_COMMON_TEXTURE_IN_USE_RESPONSE_H_
+#define GPU_COMMAND_BUFFER_COMMON_TEXTURE_IN_USE_RESPONSE_H_
+
+#include <stdint.h>
+
+#include <vector>
+
+#include "gpu/gpu_export.h"
+
+namespace gpu {
+
+// A response from the gpu process about whether a texture is in use by the
+// system compositor.
+struct GPU_EXPORT TextureInUseResponse {
+ uint32_t texture = 0;
+ bool in_use = false;
+};
+
+using TextureInUseResponses = std::vector<TextureInUseResponse>;
+
+} // namespace gpu
+
+#endif // GPU_COMMAND_BUFFER_COMMON_TEXTURE_IN_USE_RESPONSE_H_
« no previous file with comments | « gpu/command_buffer/common/BUILD.gn ('k') | gpu/command_buffer_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698