#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/platform/graphics/gpu/drawing_buffer.h"
#include <memory>
#include "base/memory/scoped_refptr.h"
#include "base/test/scoped_feature_list.h"
#include "components/viz/common/resources/release_callback.h"
#include "components/viz/common/resources/transferable_resource.h"
#include "gpu/command_buffer/client/gles2_interface_stub.h"
#include "gpu/command_buffer/common/mailbox.h"
#include "gpu/command_buffer/common/sync_token.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/platform/graphics/canvas_color_params.h"
#include "third_party/blink/renderer/platform/graphics/gpu/drawing_buffer_test_helpers.h"
#include "third_party/blink/renderer/platform/graphics/test/test_webgraphics_shared_image_interface_provider.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"
#include "ui/gl/gpu_preference.h"
#include "v8/include/v8.h"
Test;
_;
namespace blink {
MATCHER_P(SyncTokenEq, token, "") { … }
class DrawingBufferTest : public Test { … };
class DrawingBufferTestMultisample : public DrawingBufferTest { … };
TEST_F(DrawingBufferTestMultisample, verifyMultisampleResolve) { … }
TEST_F(DrawingBufferTest, VerifyResizingProperlyAffectsResources) { … }
TEST_F(DrawingBufferTest, VerifySharedImagesReleasedAfterReleaseCallback) { … }
TEST_F(DrawingBufferTest, VerifyCachedRecycledResourcesAreKept) { … }
TEST_F(DrawingBufferTest, verifyInsertAndWaitSyncTokenCorrectly) { … }
class DrawingBufferImageChromiumTest : public DrawingBufferTest,
private ScopedWebGLImageChromiumForTest { … };
TEST_F(DrawingBufferImageChromiumTest, VerifyResizingReallocatesImages) { … }
TEST_F(DrawingBufferImageChromiumTest, AllocationFailure) { … }
class DepthStencilTrackingGLES2Interface
: public gpu::gles2::GLES2InterfaceStub { … };
struct DepthStencilTestCase { … };
TEST(DrawingBufferDepthStencilTest, packedDepthStencilSupported) { … }
TEST_F(DrawingBufferTest, VerifySetIsHiddenProperlyAffectsMailboxes) { … }
TEST_F(DrawingBufferTest,
VerifyTooBigDrawingBufferExceedingV8MaxSizeFailsToCreate) { … }
}