#include "cc/layers/ui_resource_layer_impl.h"
#include <memory>
#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_f.h"
namespace cc {
UIResourceLayerImpl::UIResourceLayerImpl(LayerTreeImpl* tree_impl, int id)
: … { … }
UIResourceLayerImpl::~UIResourceLayerImpl() = default;
mojom::LayerType UIResourceLayerImpl::GetLayerType() const { … }
std::unique_ptr<LayerImpl> UIResourceLayerImpl::CreateLayerImpl(
LayerTreeImpl* tree_impl) const { … }
void UIResourceLayerImpl::PushPropertiesTo(LayerImpl* layer) { … }
void UIResourceLayerImpl::SetUIResourceId(UIResourceId uid) { … }
void UIResourceLayerImpl::SetImageBounds(const gfx::Size& image_bounds) { … }
void UIResourceLayerImpl::SetUV(const gfx::PointF& top_left,
const gfx::PointF& bottom_right) { … }
bool UIResourceLayerImpl::WillDraw(
DrawMode draw_mode,
viz::ClientResourceProvider* resource_provider) { … }
void UIResourceLayerImpl::AppendQuads(viz::CompositorRenderPass* render_pass,
AppendQuadsData* append_quads_data) { … }
void UIResourceLayerImpl::AsValueInto(
base::trace_event::TracedValue* state) const { … }
}