#ifndef GPU_COMMAND_BUFFER_COMMON_SHARED_IMAGE_USAGE_H_
#define GPU_COMMAND_BUFFER_COMMON_SHARED_IMAGE_USAGE_H_
#include <stdint.h>
#include <initializer_list>
#include <string>
#include "gpu/gpu_export.h"
namespace gpu {
enum SharedImageUsage : uint32_t { … };
class GPU_EXPORT SharedImageUsageSet { … };
inline constexpr const SharedImageUsageSet Intersection(
gpu::SharedImageUsageSet set_a,
gpu::SharedImageUsageSet set_b) { … }
inline constexpr gpu::SharedImageUsageSet operator|(
gpu::SharedImageUsageSet set_a,
gpu::SharedImageUsageSet set_b) { … }
inline constexpr gpu::SharedImageUsageSet operator|(
gpu::SharedImageUsageSet set_a,
gpu::SharedImageUsage mask_b) { … }
inline constexpr gpu::SharedImageUsageSet operator|(
gpu::SharedImageUsage mask_a,
gpu::SharedImageUsageSet set_b) { … }
inline constexpr gpu::SharedImageUsageSet operator|(
gpu::SharedImageUsage mask_a,
gpu::SharedImageUsage mask_b) { … }
inline constexpr bool operator==(gpu::SharedImageUsageSet set_a,
gpu::SharedImageUsageSet set_b) { … }
GPU_EXPORT extern const char kExoTextureLabelPrefix[];
GPU_EXPORT bool IsValidClientUsage(SharedImageUsageSet usage);
GPU_EXPORT bool HasGLES2ReadOrWriteUsage(SharedImageUsageSet usage);
GPU_EXPORT std::string CreateLabelForSharedImageUsage(
SharedImageUsageSet usage);
}
#endif