#include "gpu/command_buffer/client/client_shared_image.h"
#include <GLES2/gl2.h>
#include <GLES2/gl2extchromium.h>
#include "gpu/command_buffer/client/shared_image_interface.h"
#include "gpu/command_buffer/client/test_shared_image_interface.h"
#include "gpu/command_buffer/common/shared_image_capabilities.h"
#include "gpu/command_buffer/common/shared_image_usage.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/gpu_fence.h"
namespace gpu {
namespace {
constexpr viz::SharedImageFormat kMultiPlaneFormatsWithHardwareGMBs[4] = …;
}
TEST(ClientSharedImageTest, ImportUnowned) { … }
TEST(ClientSharedImageTest, CreateViaSharedImageInterface) { … }
TEST(ClientSharedImageTest, ExportAndImport) { … }
TEST(ClientSharedImageTest, MakeUnowned) { … }
TEST(ClientSharedImageTest,
GetTextureTarget_SinglePlaneFormats_NoNativeBuffer) { … }
TEST(ClientSharedImageTest,
GetTextureTarget_SinglePlaneFormats_ClientNativeBuffer) { … }
TEST(ClientSharedImageTest, GetTextureTarget_ScanoutUsage) { … }
TEST(ClientSharedImageTest, GetTextureTarget_WebGPUUsage) { … }
TEST(ClientSharedImageTest,
GetTextureTarget_MultiplanarFormats_NoScanoutOrWebGPUUsage) { … }
#if BUILDFLAG(IS_OZONE)
TEST(ClientSharedImageTest,
GetTextureTarget_MultiplanarFormatsWithExternalSampling) { … }
#endif
#if BUILDFLAG(IS_OZONE)
TEST(ClientSharedImageTest, GetTextureTarget_LegacyMultiplanarFormats) { … }
#endif
}