#include "gpu/command_buffer/service/shared_image/gl_ozone_image_representation.h"
#include <memory>
#include "base/check.h"
#include "base/memory/scoped_refptr.h"
#include "gpu/command_buffer/service/gl_utils.h"
#include "gpu/command_buffer/service/memory_tracking.h"
#include "gpu/command_buffer/service/shared_image/ozone_image_backing.h"
#include "gpu/command_buffer/service/shared_image/ozone_image_gl_textures_holder.h"
#include "gpu/command_buffer/service/shared_image/shared_image_manager.h"
#include "gpu/command_buffer/service/shared_image/shared_image_representation.h"
#include "gpu/command_buffer/service/texture_manager.h"
#include "ui/gl/gl_fence.h"
namespace gpu {
GLTexturePassthroughOzoneImageRepresentation::
GLTexturePassthroughOzoneImageRepresentation(
SharedImageManager* manager,
SharedImageBacking* backing,
MemoryTypeTracker* tracker,
scoped_refptr<OzoneImageGLTexturesHolder> textures_holder,
bool should_mark_context_lost_textures_holder)
: … { … }
GLTexturePassthroughOzoneImageRepresentation::
~GLTexturePassthroughOzoneImageRepresentation() { … }
const scoped_refptr<gles2::TexturePassthrough>&
GLTexturePassthroughOzoneImageRepresentation::GetTexturePassthrough(
int plane_index) { … }
bool GLTexturePassthroughOzoneImageRepresentation::BeginAccess(GLenum mode) { … }
void GLTexturePassthroughOzoneImageRepresentation::EndAccess() { … }
OzoneImageBacking*
GLTexturePassthroughOzoneImageRepresentation::GetOzoneBacking() { … }
}