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

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

Issue 9303009: Add IPC allowing GPU process to tell browser process to temporarily drop a front buffer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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
« no previous file with comments | « content/common/gpu/image_transport_surface.cc ('k') | ui/gfx/surface/accelerated_surface_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/surface/accelerated_surface_win.h
===================================================================
--- ui/gfx/surface/accelerated_surface_win.h (revision 119674)
+++ ui/gfx/surface/accelerated_surface_win.h (working copy)
@@ -30,6 +30,11 @@
// Synchronously present a frame with no acknowledgement.
bool Present(HWND window);
+ // 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.
+ void Suspend();
+
private:
linked_ptr<AcceleratedPresenter> presenter_;
DISALLOW_COPY_AND_ASSIGN(AcceleratedSurface);
« no previous file with comments | « content/common/gpu/image_transport_surface.cc ('k') | ui/gfx/surface/accelerated_surface_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698