#include "gtest/gtest.h"
#include "flutter/shell/platform/linux/fl_framebuffer.h"
#include "flutter/shell/platform/linux/testing/mock_epoxy.h"
Go to the source code of this file.
|
| TEST (FlFramebufferTest, HasDepthStencil) |
|
◆ TEST()
TEST |
( |
FlFramebufferTest |
, |
|
|
HasDepthStencil |
|
|
) |
| |
Definition at line 10 of file fl_framebuffer_test.cc.
11 ::testing::NiceMock<flutter::testing::MockEpoxy> epoxy;
15 GLint depth_type = GL_NONE;
16 glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT,
17 GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,
19 EXPECT_NE(depth_type, GL_NONE);
21 GLint stencil_type = GL_NONE;
22 glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER, GL_STENCIL_ATTACHMENT,
23 GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,
25 EXPECT_NE(stencil_type, GL_NONE);
References fl_framebuffer_new().