chromium/chrome/browser/vr/skia_surface_provider.cc

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

#include "chrome/browser/vr/skia_surface_provider.h"

#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkSurface.h"
#include "third_party/skia/include/gpu/GpuTypes.h"
#include "third_party/skia/include/gpu/GrBackendSurface.h"
#include "third_party/skia/include/gpu/GrDirectContext.h"
#include "third_party/skia/include/gpu/GrRecordingContext.h"
#include "third_party/skia/include/gpu/ganesh/SkSurfaceGanesh.h"
#include "third_party/skia/include/gpu/ganesh/gl/GrGLBackendSurface.h"
#include "third_party/skia/include/gpu/gl/GrGLTypes.h"
#include "ui/gfx/geometry/size.h"

namespace vr {
namespace {
GLint GetTextureIDFromSurface(SkSurface* surface) {}
}  // namespace

SkiaSurfaceProvider::Texture::Texture(sk_sp<SkSurface> surface)
    :{}

SkiaSurfaceProvider::Texture::~Texture() = default;

std::unique_ptr<SkiaSurfaceProvider::Texture>
SkiaSurfaceProvider::CreateTextureWithSkiaImpl(
    GrDirectContext* gr_context,
    const gfx::Size& size,
    base::FunctionRef<void(SkCanvas*)> paint) {}

}  // namespace vr