| Index: ui/gfx/surface/accelerated_surface_win.h
|
| diff --git a/ui/gfx/surface/accelerated_surface_win.h b/ui/gfx/surface/accelerated_surface_win.h
|
| index d027f19b548a76763c8c00816e48bf22ef479a36..4a752594cec6c38a440996686c0f4964ca6671b9 100644
|
| --- a/ui/gfx/surface/accelerated_surface_win.h
|
| +++ b/ui/gfx/surface/accelerated_surface_win.h
|
| @@ -32,6 +32,7 @@ class AcceleratedPresenter
|
| int64 surface_id,
|
| const base::Callback<void(bool)>& completion_task);
|
| bool Present(gfx::NativeWindow window);
|
| + bool CopyTo(const gfx::Size& size, void* buf);
|
| void Suspend();
|
| void WaitForPendingTasks();
|
|
|
| @@ -85,6 +86,12 @@ class SURFACE_EXPORT AcceleratedSurface {
|
| // Synchronously present a frame with no acknowledgement.
|
| bool Present(gfx::NativeWindow window);
|
|
|
| + // Copies the surface data to |buf|. The image data is transformed so that it
|
| + // fits in |size|.
|
| + // Caller must ensure that |buf| is allocated with the size no less than
|
| + // |4 * size.width() * size.height()| bytes.
|
| + bool CopyTo(const gfx::Size& size, void* buf);
|
| +
|
| // Temporarily release resources until a new surface is asynchronously
|
| // presented. Present will not be able to represent the last surface after
|
| // calling this and will return false.
|
|
|