#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "gpu/command_buffer/service/framebuffer_manager.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include "base/memory/raw_ptr.h"
#include "gpu/command_buffer/client/client_test_helper.h"
#include "gpu/command_buffer/service/error_state_mock.h"
#include "gpu/command_buffer/service/feature_info.h"
#include "gpu/command_buffer/service/gles2_cmd_decoder_mock.h"
#include "gpu/command_buffer/service/gpu_service_test.h"
#include "gpu/command_buffer/service/gpu_tracer.h"
#include "gpu/command_buffer/service/renderbuffer_manager.h"
#include "gpu/command_buffer/service/service_discardable_manager.h"
#include "gpu/command_buffer/service/test_helper.h"
#include "gpu/command_buffer/service/texture_manager.h"
#include "gpu/config/gpu_preferences.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gl/gl_mock.h"
_;
Return;
namespace gpu {
namespace gles2 {
namespace {
const GLint kMaxTextureSize = …;
const GLint kMaxCubemapSize = …;
const GLint kMaxRectangleTextureSize = …;
const GLint kMax3DTextureSize = …;
const GLint kMaxArrayTextureLayers = …;
const GLint kMaxRenderbufferSize = …;
const GLint kMaxSamples = …;
const uint32_t kMaxDrawBuffers = …;
const uint32_t kMaxColorAttachments = …;
const bool kUseDefaultTextures = …;
}
class FramebufferManagerTest : public GpuServiceTest { … };
TEST_F(FramebufferManagerTest, Basic) { … }
TEST_F(FramebufferManagerTest, Destroy) { … }
class FramebufferInfoTestBase : public GpuServiceTest { … };
class FramebufferInfoTest : public FramebufferInfoTestBase { … };
class FramebufferInfoES3Test : public FramebufferInfoTestBase { … };
#ifndef COMPILER_MSVC
const GLuint FramebufferInfoTestBase::kClient1Id;
const GLuint FramebufferInfoTestBase::kService1Id;
#endif
TEST_F(FramebufferInfoTest, Basic) { … }
TEST_F(FramebufferInfoTest, AttachRenderbuffer) { … }
TEST_F(FramebufferInfoTest, AttachTexture2D) { … }
TEST_F(FramebufferInfoTest, AttachTextureCube) { … }
TEST_F(FramebufferInfoTest, AttachTextureLayer) { … }
TEST_F(FramebufferInfoTest, ClearPartiallyClearedAttachments) { … }
TEST_F(FramebufferInfoTest, Clear3DTextureAttachments) { … }
TEST_F(FramebufferInfoTest, Clear3DOutsideRenderableRange) { … }
TEST_F(FramebufferInfoTest, ClearIntegerTextureAttachments) { … }
TEST_F(FramebufferInfoTest, ClearIntegerOutsideRenderableRange) { … }
TEST_F(FramebufferInfoES3Test, DrawBuffers) { … }
TEST_F(FramebufferInfoTest, DrawBufferMasks) { … }
class FramebufferInfoFloatTest : public FramebufferInfoTestBase { … };
TEST_F(FramebufferInfoFloatTest, AttachFloatTexture) { … }
TEST_F(FramebufferInfoTest, UnbindRenderbuffer) { … }
TEST_F(FramebufferInfoTest, UnbindTexture) { … }
TEST_F(FramebufferInfoTest, LastColorAttachmentIdTest) { … }
TEST_F(FramebufferInfoTest, IsCompleteMarkAsComplete) { … }
TEST_F(FramebufferInfoTest, GetStatus) { … }
TEST_F(FramebufferInfoES3Test, DifferentDimensions) { … }
TEST_F(FramebufferInfoES3Test, DuplicatedAttachments) { … }
TEST_F(FramebufferInfoES3Test, ReadBuffer) { … }
TEST_F(FramebufferInfoES3Test, AttachNonLevel0Texture) { … }
}
}