#include "third_party/blink/renderer/platform/graphics/compositing/layers_as_json.h"
#include "cc/layers/layer.h"
#include "third_party/blink/renderer/platform/geometry/geometry_as_json.h"
#include "third_party/blink/renderer/platform/graphics/color.h"
#include "third_party/blink/renderer/platform/graphics/compositing/content_layer_client_impl.h"
#include "third_party/blink/renderer/platform/graphics/graphics_types.h"
#include "third_party/blink/renderer/platform/graphics/paint/transform_paint_property_node.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/blink/renderer/platform/wtf/text/text_stream.h"
#include "ui/gfx/geometry/point_f.h"
namespace blink {
namespace {
String PointerAsString(const void* ptr) { … }
double RoundCloseToZero(double number) { … }
std::unique_ptr<JSONArray> TransformAsJSONArray(const gfx::Transform& t) { … }
}
std::unique_ptr<JSONObject> CCLayerAsJSON(const cc::Layer& layer,
LayerTreeFlags flags) { … }
LayersAsJSON::LayersAsJSON(LayerTreeFlags flags)
: … { … }
int LayersAsJSON::AddTransformJSON(
const TransformPaintPropertyNode& transform) { … }
void LayersAsJSON::AddLayer(const cc::Layer& layer,
const TransformPaintPropertyNode& transform,
const ContentLayerClientImpl* layer_client) { … }
std::unique_ptr<JSONObject> LayersAsJSON::Finalize() { … }
}