// 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. #ifndef UI_OZONE_COMMON_GL_SURFACE_EGL_READBACK_H_ #define UI_OZONE_COMMON_GL_SURFACE_EGL_READBACK_H_ #include "base/containers/heap_array.h" #include "base/containers/span.h" #include "base/memory/scoped_refptr.h" #include "ui/gfx/native_widget_types.h" #include "ui/gl/gl_surface_egl.h" namespace base { class SingleThreadTaskRunner; } namespace ui { // GLSurface implementation that renders into a pbuffer and then does a readback // of pixels into memory. This is intended to be used with SwiftShader where // there is no FBO implementation for Ozone. class GLSurfaceEglReadback : public gl::PbufferGLSurfaceEGL { … }; } // namespace ui #endif // UI_OZONE_COMMON_GL_SURFACE_EGL_READBACK_H_