chromium/third_party/blink/renderer/platform/graphics/mailbox_texture_backing.cc

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

#include "third_party/blink/renderer/platform/graphics/mailbox_texture_backing.h"

#include "third_party/blink/renderer/platform/graphics/accelerated_static_bitmap_image.h"
#include "third_party/blink/renderer/platform/graphics/mailbox_ref.h"
#include "third_party/blink/renderer/platform/graphics/skia/skia_utils.h"
#include "third_party/blink/renderer/platform/graphics/web_graphics_context_3d_provider_wrapper.h"
#include "third_party/skia/include/core/SkImage.h"
#include "third_party/skia/include/gpu/GrDirectContext.h"

namespace blink {

MailboxTextureBacking::MailboxTextureBacking(
    sk_sp<SkImage> sk_image,
    scoped_refptr<MailboxRef> mailbox_ref,
    const SkImageInfo& info,
    base::WeakPtr<WebGraphicsContext3DProviderWrapper> context_provider_wrapper)
    :{}

MailboxTextureBacking::MailboxTextureBacking(
    const gpu::Mailbox& mailbox,
    scoped_refptr<MailboxRef> mailbox_ref,
    const SkImageInfo& info,
    base::WeakPtr<WebGraphicsContext3DProviderWrapper> context_provider_wrapper)
    :{}

MailboxTextureBacking::~MailboxTextureBacking() {}

const SkImageInfo& MailboxTextureBacking::GetSkImageInfo() {}

gpu::Mailbox MailboxTextureBacking::GetMailbox() const {}

sk_sp<SkImage> MailboxTextureBacking::GetAcceleratedSkImage() {}

sk_sp<SkImage> MailboxTextureBacking::GetSkImageViaReadback() {}

bool MailboxTextureBacking::readPixels(const SkImageInfo& dst_info,
                                       void* dst_pixels,
                                       size_t dst_row_bytes,
                                       int src_x,
                                       int src_y) {}

void MailboxTextureBacking::FlushPendingSkiaOps() {}

}  // namespace blink