chromium/ui/ozone/common/gl_surface_egl_readback.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "ui/ozone/common/gl_surface_egl_readback.h"

#include <utility>

#include "base/functional/bind.h"
#include "base/task/single_thread_task_runner.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_implementation.h"
#include "ui/ozone/common/egl_util.h"

namespace ui {
namespace {

constexpr size_t kBytesPerPixelBGRA =;

}  // namespace

GLSurfaceEglReadback::GLSurfaceEglReadback(gl::GLDisplayEGL* display)
    :{}

bool GLSurfaceEglReadback::Resize(const gfx::Size& size,
                                  float scale_factor,
                                  const gfx::ColorSpace& color_space,
                                  bool has_alpha) {}

gfx::SwapResult GLSurfaceEglReadback::SwapBuffers(PresentationCallback callback,
                                                  gfx::FrameData data) {}

gfx::SurfaceOrigin GLSurfaceEglReadback::GetOrigin() const {}

GLSurfaceEglReadback::~GLSurfaceEglReadback() {}

bool GLSurfaceEglReadback::HandlePixels(uint8_t* pixels) {}

void GLSurfaceEglReadback::ReadPixels(base::span<uint8_t> buffer) {}

}  // namespace ui