chromium/third_party/blink/renderer/platform/graphics/compositing/layers_as_json.h

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_COMPOSITING_LAYERS_AS_JSON_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_COMPOSITING_LAYERS_AS_JSON_H_

#include <memory>

#include "base/memory/stack_allocated.h"
#include "third_party/blink/renderer/platform/heap/collection_support/heap_hash_map.h"
#include "third_party/blink/renderer/platform/platform_export.h"

namespace cc {
class Layer;
}

namespace blink {

class ContentLayerClientImpl;
class JSONArray;
class JSONObject;
class TransformPaintPropertyNode;

// These values need to be kept consistent with the layer tree flags in
// core/testing/Internals.idl.
enum {};
LayerTreeFlags;

class PLATFORM_EXPORT LayersAsJSON {};

PLATFORM_EXPORT std::unique_ptr<JSONObject> CCLayerAsJSON(
    const cc::Layer& layer,
    LayerTreeFlags flags);

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_COMPOSITING_LAYERS_AS_JSON_H_