#include "cc/layers/nine_patch_layer_impl.h"
#include <memory>
#include <vector>
#include "base/functional/callback_helpers.h"
#include "base/trace_event/traced_value.h"
#include "cc/base/math_util.h"
#include "cc/trees/layer_tree_impl.h"
#include "cc/trees/occlusion.h"
#include "components/viz/common/quads/texture_draw_quad.h"
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/gfx/geometry/rect_f.h"
namespace cc {
NinePatchLayerImpl::NinePatchLayerImpl(LayerTreeImpl* tree_impl, int id)
: … { … }
NinePatchLayerImpl::~NinePatchLayerImpl() = default;
mojom::LayerType NinePatchLayerImpl::GetLayerType() const { … }
std::unique_ptr<LayerImpl> NinePatchLayerImpl::CreateLayerImpl(
LayerTreeImpl* tree_impl) const { … }
void NinePatchLayerImpl::PushPropertiesTo(LayerImpl* layer) { … }
void NinePatchLayerImpl::SetLayout(const gfx::Rect& aperture,
const gfx::Rect& border,
const gfx::Rect& layer_occlusion,
bool fill_center,
bool nearest_neighbor) { … }
void NinePatchLayerImpl::AppendQuads(viz::CompositorRenderPass* render_pass,
AppendQuadsData* append_quads_data) { … }
void NinePatchLayerImpl::AsValueInto(
base::trace_event::TracedValue* state) const { … }
}