#include "third_party/blink/renderer/platform/graphics/image_to_buffer_copier.h"
#include "gpu/GLES2/gl2extchromium.h"
#include "gpu/command_buffer/client/client_shared_image.h"
#include "gpu/command_buffer/client/shared_image_interface.h"
#include "gpu/command_buffer/common/shared_image_usage.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/web_graphics_context_3d_provider.h"
#include "third_party/blink/renderer/platform/graphics/graphics_types_3d.h"
#include "third_party/blink/renderer/platform/graphics/image.h"
#include "third_party/blink/renderer/platform/graphics/static_bitmap_image.h"
#include "third_party/blink/renderer/platform/instrumentation/tracing/trace_event.h"
namespace blink {
ImageToBufferCopier::ImageToBufferCopier(
gpu::gles2::GLES2Interface* gl,
gpu::SharedImageInterface* sii)
: … { … }
ImageToBufferCopier::~ImageToBufferCopier() { … }
bool ImageToBufferCopier::EnsureDestImage(const gfx::Size& size) { … }
std::pair<gfx::GpuMemoryBufferHandle, gpu::SyncToken>
ImageToBufferCopier::CopyImage(Image* image) { … }
void ImageToBufferCopier::CleanupDestImage() { … }
}