Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: ui/gfx/surface/accelerated_surface_win.h

Issue 9582003: Support browser side thumbnailing for GPU composited pages on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 cf59178742e1751fe64b851a47648ae930192ef3..1a50c00ca0fb6c1bbbfc1b952e09c9120b77030c 100644
--- a/ui/gfx/surface/accelerated_surface_win.h
+++ b/ui/gfx/surface/accelerated_surface_win.h
@@ -6,6 +6,8 @@
#define UI_GFX_SURFACE_ACCELERATED_SURFACE_WIN_H_
#pragma once
+#include <vector>
+
#include "base/callback_forward.h"
#include "base/memory/linked_ptr.h"
#include "ui/gfx/native_widget_types.h"
@@ -30,6 +32,10 @@ class SURFACE_EXPORT AcceleratedSurface {
// Synchronously present a frame with no acknowledgement.
bool Present(HWND window);
+ // Copies the surface data to |buf|. The image data is transformed so that it
+ // fits in |size|.
+ bool CopyTo(const gfx::Size& size, std::vector<unsigned char>* 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.

Powered by Google App Engine
This is Rietveld 408576698