| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef GPU_COMMAND_BUFFER_COMMON_TEXTURE_IN_USE_RESPONSE_H_ | 5 #ifndef GPU_COMMAND_BUFFER_COMMON_TEXTURE_IN_USE_RESPONSE_H_ |
| 6 #define GPU_COMMAND_BUFFER_COMMON_TEXTURE_IN_USE_RESPONSE_H_ | 6 #define GPU_COMMAND_BUFFER_COMMON_TEXTURE_IN_USE_RESPONSE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "gpu/gpu_export.h" | 12 #include "gpu/gpu_export.h" |
| 13 #include "ui/gfx/gpu_memory_buffer.h" |
| 13 | 14 |
| 14 namespace gpu { | 15 namespace gpu { |
| 15 | 16 |
| 16 // A response from the gpu process about whether a texture is in use by the | 17 // A response from the gpu process about whether a texture is in use by the |
| 17 // system compositor. | 18 // system compositor. |
| 18 struct GPU_EXPORT TextureInUseResponse { | 19 struct GPU_EXPORT TextureInUseResponse { |
| 19 uint32_t texture = 0; | 20 uint32_t texture = 0; |
| 20 bool in_use = false; | 21 gfx::GpuMemoryBufferHandle gpu_memory_buffer_handle; |
| 22 bool in_use_valid = false; |
| 21 }; | 23 }; |
| 22 | 24 |
| 23 using TextureInUseResponses = std::vector<TextureInUseResponse>; | 25 using TextureInUseResponses = std::vector<TextureInUseResponse>; |
| 24 | 26 |
| 25 } // namespace gpu | 27 } // namespace gpu |
| 26 | 28 |
| 27 #endif // GPU_COMMAND_BUFFER_COMMON_TEXTURE_IN_USE_RESPONSE_H_ | 29 #endif // GPU_COMMAND_BUFFER_COMMON_TEXTURE_IN_USE_RESPONSE_H_ |
| OLD | NEW |