#include "gpu/command_buffer/service/shared_image/compound_image_backing.h"
#include "components/viz/common/resources/shared_image_format.h"
#include "components/viz/common/resources/shared_image_format_utils.h"
#include "gpu/command_buffer/common/shared_image_usage.h"
#include "gpu/command_buffer/service/memory_tracking.h"
#include "gpu/command_buffer/service/shared_context_state.h"
#include "gpu/command_buffer/service/shared_image/shared_image_backing.h"
#include "gpu/command_buffer/service/shared_image/shared_image_backing_factory.h"
#include "gpu/command_buffer/service/shared_image/shared_image_manager.h"
#include "gpu/command_buffer/service/shared_image/shared_memory_image_backing.h"
#include "gpu/command_buffer/service/shared_image/test_image_backing.h"
#include "gpu/command_buffer/service/test_memory_tracker.h"
#include "gpu/ipc/common/gpu_memory_buffer_impl_shared_memory.h"
#include "gpu/ipc/common/surface_handle.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkAlphaType.h"
#include "third_party/skia/include/gpu/GrBackendSemaphore.h"
#include "third_party/skia/include/gpu/GrTypes.h"
#include "ui/gfx/buffer_types.h"
namespace gpu {
namespace {
constexpr uint32_t kTestBackingSize = …;
class TestSharedImageBackingFactory : public SharedImageBackingFactory { … };
}
class CompoundImageBackingTest : public testing::Test { … };
TEST_F(CompoundImageBackingTest, References) { … }
TEST_F(CompoundImageBackingTest, UploadOnAccess) { … }
TEST_F(CompoundImageBackingTest, ReadbackToMemory) { … }
TEST_F(CompoundImageBackingTest, LazyAllocationFailsCreate) { … }
TEST_F(CompoundImageBackingTest, LazyAllocationFailsFactoryInvalidated) { … }
TEST_F(CompoundImageBackingTest, Multiplanar) { … }
}