#include "gpu/command_buffer/service/shared_image/ozone_image_backing_factory.h"
#include "components/viz/common/resources/shared_image_format.h"
#include "gpu/command_buffer/common/shared_image_usage.h"
#include "gpu/command_buffer/service/shared_image/gl_ozone_image_representation.h"
#include "gpu/command_buffer/service/shared_image/ozone_image_backing.h"
#include "gpu/command_buffer/service/shared_image/ozone_image_gl_textures_holder.h"
#include "gpu/command_buffer/service/shared_image/shared_image_manager.h"
#include "gpu/command_buffer/service/shared_image/shared_image_test_base.h"
#include "gpu/config/gpu_finch_features.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_surface_egl.h"
#include "ui/gl/gl_utils.h"
#include "ui/gl/init/gl_factory.h"
namespace gpu {
namespace {
class FakeOnScreenSurface : public gl::SurfacelessEGL { … };
}
class OzoneImageBackingFactoryTest : public SharedImageTestBase { … };
TEST_F(OzoneImageBackingFactoryTest, UsesCacheForTextureHolders) { … }
TEST_F(OzoneImageBackingFactoryTest, UsesCacheForTextureHolders2) { … }
TEST_F(OzoneImageBackingFactoryTest, MarksContextLostOnContextLost) { … }
TEST_F(OzoneImageBackingFactoryTest, MarksContextLostOnContextLost2) { … }
TEST_F(OzoneImageBackingFactoryTest, RemovesTextureHoldersOnContextDestroy) { … }
TEST_F(OzoneImageBackingFactoryTest, RestoresContextOnAnotherContextDestroy) { … }
TEST_F(OzoneImageBackingFactoryTest, FindsCompatibleContextAndReusesTexture) { … }
TEST_F(OzoneImageBackingFactoryTest, CorrectlyDestroysAndMarksContextLost) { … }
}