#include "components/viz/common/transition_utils.h"
#include <memory>
#include <sstream>
#include <string>
#include <unordered_set>
#include <vector>
#include "components/viz/common/quads/compositor_render_pass.h"
#include "components/viz/common/quads/compositor_render_pass_draw_quad.h"
#include "components/viz/common/quads/render_pass_io.h"
#include "components/viz/common/quads/shared_element_draw_quad.h"
#include "components/viz/common/quads/solid_color_draw_quad.h"
#include "third_party/skia/include/core/SkColor.h"
namespace viz {
namespace {
constexpr int kMaxListToProcess = …;
constexpr int kMaxQuadsPerFrame = …;
struct StackFrame { … };
std::string SkColorToRGBAString(SkColor color) { … }
std::string SkColorToRGBAString(SkColor4f color) { … }
std::unordered_set<uint64_t> ProcessStack(
std::ostringstream& str,
std::vector<StackFrame>& stack,
const CompositorRenderPassList& list) { … }
}
std::string TransitionUtils::RenderPassListToString(
const CompositorRenderPassList& list) { … }
std::unique_ptr<CompositorRenderPass>
TransitionUtils::CopyPassWithQuadFiltering(
const CompositorRenderPass& source_pass,
FilterCallback filter_callback) { … }
}