#include "cc/layers/texture_layer_impl.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <utility>
#include <vector>
#include "base/containers/contains.h"
#include "base/feature_list.h"
#include "base/functional/callback_forward.h"
#include "base/logging.h"
#include "cc/base/features.h"
#include "cc/trees/layer_tree_frame_sink.h"
#include "cc/trees/layer_tree_impl.h"
#include "cc/trees/occlusion.h"
#include "components/viz/common/features.h"
#include "components/viz/common/quads/solid_color_draw_quad.h"
#include "components/viz/common/quads/texture_draw_quad.h"
#include "components/viz/common/resources/bitmap_allocation.h"
#include "components/viz/common/resources/platform_color.h"
namespace cc {
TextureLayerImpl::TextureLayerImpl(LayerTreeImpl* tree_impl, int id)
: … { … }
TextureLayerImpl::~TextureLayerImpl() { … }
mojom::LayerType TextureLayerImpl::GetLayerType() const { … }
std::unique_ptr<LayerImpl> TextureLayerImpl::CreateLayerImpl(
LayerTreeImpl* tree_impl) const { … }
bool TextureLayerImpl::IsSnappedToPixelGridInTarget() { … }
void TextureLayerImpl::PushPropertiesTo(LayerImpl* layer) { … }
bool TextureLayerImpl::WillDraw(
DrawMode draw_mode,
viz::ClientResourceProvider* resource_provider) { … }
void TextureLayerImpl::AppendQuads(viz::CompositorRenderPass* render_pass,
AppendQuadsData* append_quads_data) { … }
SimpleEnclosedRegion TextureLayerImpl::VisibleOpaqueRegion() const { … }
void TextureLayerImpl::OnPurgeMemory() { … }
void TextureLayerImpl::ReleaseResources() { … }
gfx::ContentColorUsage TextureLayerImpl::GetContentColorUsage() const { … }
void TextureLayerImpl::SetPremultipliedAlpha(bool premultiplied_alpha) { … }
void TextureLayerImpl::SetBlendBackgroundColor(bool blend) { … }
void TextureLayerImpl::SetForceTextureToOpaque(bool opaque) { … }
void TextureLayerImpl::SetFlipped(bool flipped) { … }
void TextureLayerImpl::SetNearestNeighbor(bool nearest_neighbor) { … }
void TextureLayerImpl::SetUVTopLeft(const gfx::PointF& top_left) { … }
void TextureLayerImpl::SetUVBottomRight(const gfx::PointF& bottom_right) { … }
void TextureLayerImpl::SetTransferableResource(
const viz::TransferableResource& resource,
viz::ReleaseCallback release_callback) { … }
void TextureLayerImpl::RegisterSharedBitmapId(
viz::SharedBitmapId id,
scoped_refptr<CrossThreadSharedBitmap> bitmap) { … }
void TextureLayerImpl::UnregisterSharedBitmapId(viz::SharedBitmapId id) { … }
void TextureLayerImpl::FreeTransferableResource() { … }
void TextureLayerImpl::OnResourceEvicted() { … }
void TextureLayerImpl::SetInInvisibleLayerTree() { … }
bool TextureLayerImpl::MayEvictResourceInBackground(
viz::TransferableResource::ResourceSource source) { … }
}