chromium/cc/layers/texture_layer.cc

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

#include "cc/layers/texture_layer.h"

#include <memory>
#include <utility>
#include <vector>

#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/synchronization/lock.h"
#include "base/task/sequenced_task_runner.h"
#include "base/trace_event/trace_event.h"
#include "cc/base/features.h"
#include "cc/base/simple_enclosed_region.h"
#include "cc/layers/texture_layer_client.h"
#include "cc/layers/texture_layer_impl.h"
#include "cc/trees/layer_tree_impl.h"

namespace cc {

scoped_refptr<TextureLayer> TextureLayer::CreateForMailbox(
    TextureLayerClient* client) {}

TextureLayer::TextureLayer(TextureLayerClient* client)
    :{}

TextureLayer::~TextureLayer() = default;

void TextureLayer::ClearClient() {}

void TextureLayer::ClearTexture() {}

std::unique_ptr<LayerImpl> TextureLayer::CreateLayerImpl(
    LayerTreeImpl* tree_impl) const {}

void TextureLayer::SetFlipped(bool flipped) {}

void TextureLayer::SetNearestNeighbor(bool nearest_neighbor) {}

void TextureLayer::SetUV(const gfx::PointF& top_left,
                         const gfx::PointF& bottom_right) {}

void TextureLayer::SetPremultipliedAlpha(bool premultiplied_alpha) {}

void TextureLayer::SetBlendBackgroundColor(bool blend) {}

void TextureLayer::SetForceTextureToOpaque(bool opaque) {}

void TextureLayer::SetTransferableResourceInternal(
    const viz::TransferableResource& resource,
    viz::ReleaseCallback release_callback,
    bool requires_commit) {}

void TextureLayer::SetTransferableResource(
    const viz::TransferableResource& resource,
    viz::ReleaseCallback release_callback) {}

void TextureLayer::SetNeedsSetTransferableResource() {}

void TextureLayer::SetLayerTreeHost(LayerTreeHost* host) {}

bool TextureLayer::HasDrawableContent() const {}

bool TextureLayer::RequiresSetNeedsDisplayOnHdrHeadroomChange() const {}

bool TextureLayer::Update() {}

bool TextureLayer::IsSnappedToPixelGridInTarget() const {}

void TextureLayer::PushPropertiesTo(
    LayerImpl* layer,
    const CommitState& commit_state,
    const ThreadUnsafeCommitState& unsafe_state) {}

SharedBitmapIdRegistration TextureLayer::RegisterSharedBitmapId(
    const viz::SharedBitmapId& id,
    scoped_refptr<CrossThreadSharedBitmap> bitmap) {}

void TextureLayer::UnregisterSharedBitmapId(viz::SharedBitmapId id) {}

TextureLayer::TransferableResourceHolder::TransferableResourceHolder(
    const viz::TransferableResource& resource,
    viz::ReleaseCallback release_callback)
    :{}

TextureLayer::TransferableResourceHolder::~TransferableResourceHolder() {}

scoped_refptr<TextureLayer::TransferableResourceHolder>
TextureLayer::TransferableResourceHolder::Create(
    const viz::TransferableResource& resource,
    viz::ReleaseCallback release_callback) {}

void TextureLayer::TransferableResourceHolder::Return(
    scoped_refptr<base::SequencedTaskRunner> main_thread_task_runner,
    const gpu::SyncToken& sync_token,
    bool is_lost) {}

}  // namespace cc