| Index: gpu/command_buffer/service/async_pixel_transfer_delegate.h
|
| diff --git a/gpu/command_buffer/service/async_pixel_transfer_delegate.h b/gpu/command_buffer/service/async_pixel_transfer_delegate.h
|
| index b41bcd52444db1a234ce9dd82b968d145388bd29..b9ff50dbc35413a9c65fde73feb44aa944a53455 100644
|
| --- a/gpu/command_buffer/service/async_pixel_transfer_delegate.h
|
| +++ b/gpu/command_buffer/service/async_pixel_transfer_delegate.h
|
| @@ -43,6 +43,27 @@ struct AsyncTexSubImage2DParams {
|
| GLenum type;
|
| };
|
|
|
| +struct AsyncCompressedTexImage2DParams {
|
| + GLenum target;
|
| + GLint level;
|
| + GLenum internal_format;
|
| + GLsizei width;
|
| + GLsizei height;
|
| + GLint border;
|
| + GLsizei image_size;
|
| +};
|
| +
|
| +struct AsyncCompressedTexSubImage2DParams {
|
| + GLenum target;
|
| + GLint level;
|
| + GLint xoffset;
|
| + GLint yoffset;
|
| + GLsizei width;
|
| + GLsizei height;
|
| + GLenum format;
|
| + GLsizei image_size;
|
| +};
|
| +
|
| class AsyncMemoryParams {
|
| public:
|
| AsyncMemoryParams(scoped_refptr<Buffer> buffer,
|
| @@ -98,6 +119,15 @@ class GPU_EXPORT AsyncPixelTransferDelegate {
|
| const AsyncTexSubImage2DParams& tex_params,
|
| const AsyncMemoryParams& mem_params) = 0;
|
|
|
| + virtual void AsyncCompressedTexImage2D(
|
| + const AsyncCompressedTexImage2DParams& tex_params,
|
| + const AsyncMemoryParams& mem_params,
|
| + const base::Closure& bind_callback) = 0;
|
| +
|
| + virtual void AsyncCompressedTexSubImage2D(
|
| + const AsyncCompressedTexSubImage2DParams& tex_params,
|
| + const AsyncMemoryParams& mem_params) = 0;
|
| +
|
| // Returns true if there is a transfer in progress.
|
| virtual bool TransferIsInProgress() = 0;
|
|
|
|
|