#include "components/viz/service/display/resolved_frame_data.h"
#include <memory>
#include <utility>
#include "components/viz/common/quads/compositor_render_pass.h"
#include "components/viz/common/quads/offset_tag.h"
#include "components/viz/common/quads/texture_draw_quad.h"
#include "components/viz/service/display/display_resource_provider_software.h"
#include "components/viz/service/display_embedder/server_shared_bitmap_manager.h"
#include "components/viz/service/frame_sinks/compositor_frame_sink_support.h"
#include "components/viz/service/frame_sinks/frame_sink_manager_impl.h"
#include "components/viz/service/surfaces/surface.h"
#include "components/viz/test/compositor_frame_helpers.h"
#include "components/viz/test/draw_quad_matchers.h"
#include "components/viz/test/test_surface_id_allocator.h"
#include "gpu/command_buffer/service/scheduler.h"
#include "gpu/command_buffer/service/shared_image/shared_image_manager.h"
#include "gpu/command_buffer/service/sync_point_manager.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/transform.h"
#include "ui/gfx/geometry/vector2d_f.h"
namespace viz {
class ResolvedFrameDataTestHelper { … };
namespace {
constexpr gfx::Rect kOutputRect(100, 100);
constexpr FrameSinkId kArbitraryFrameSinkId(1, 1);
SurfaceId MakeSurfaceId() { … }
OffsetTagDefinition MakeOffsetTagDefinition() { … }
CompositorFrame MakeSimpleFrame(const gfx::Rect& damage_rect = kOutputRect) { … }
std::unique_ptr<CompositorRenderPass> BuildRenderPass(int id) { … }
void AddRenderPassQuad(CompositorRenderPass* render_pass,
CompositorRenderPassId render_pass_id) { … }
class ResolvedFrameDataTest : public testing::Test { … };
TEST_F(ResolvedFrameDataTest, UpdateActiveFrame) { … }
TEST_F(ResolvedFrameDataTest, DupliateRenderPassIds) { … }
TEST_F(ResolvedFrameDataTest, RenderPassIdsSelfCycle) { … }
TEST_F(ResolvedFrameDataTest, RenderPassIdsCycle) { … }
TEST_F(ResolvedFrameDataTest, RenderPassWithPerQuadDamage) { … }
TEST_F(ResolvedFrameDataTest, MarkAsUsed) { … }
TEST_F(ResolvedFrameDataTest, SetFullDamageNextAggregation) { … }
TEST_F(ResolvedFrameDataTest, ReusePreviousRootPassId) { … }
TEST_F(ResolvedFrameDataTest, OffsetTags) { … }
TEST_F(ResolvedFrameDataTest, OffsetTagValueIsClamped) { … }
TEST_F(ResolvedFrameDataTest, OffsetTagWithCopyRequest) { … }
TEST_F(ResolvedFrameDataTest, OffsetTagClientDamageIsOffset) { … }
TEST_F(ResolvedFrameDataTest, OffsetTagOffsetValueChangedDamage) { … }
TEST_F(ResolvedFrameDataTest, OffsetTagLayerRemovedDamage) { … }
TEST_F(ResolvedFrameDataTest, OffsetTagContainingRectNonRootRenderPass) { … }
}
}