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

Unified Diff: content/common/gpu/image_transport_surface.h

Issue 7890046: Command to mark surface inactive, so gpu process can release resources. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Flush only on hide Created 9 years, 2 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: content/common/gpu/image_transport_surface.h
diff --git a/content/common/gpu/image_transport_surface.h b/content/common/gpu/image_transport_surface.h
index 044d8c3231e0c67cf8c01ed8b24f5dbc4ca69a23..fc9e951b93285ff9a63980dbd7e399d2c32bc412 100644
--- a/content/common/gpu/image_transport_surface.h
+++ b/content/common/gpu/image_transport_surface.h
@@ -52,6 +52,7 @@ class ImageTransportSurface {
uint64 surface_id, TransportDIB::Handle surface_handle) = 0;
virtual void OnBuffersSwappedACK() = 0;
virtual void OnResize(gfx::Size size) = 0;
+ virtual void OnSurfaceVisible(bool visible) = 0;
// Creates the appropriate surface depending on the GL implementation.
static scoped_refptr<gfx::GLSurface>
@@ -104,6 +105,7 @@ class ImageTransportHelper : public IPC::Channel::Listener {
// Backbuffer resize callback.
void Resize(gfx::Size size);
+ void SurfaceVisible(bool visible);
// Weak pointers that point to objects that outlive this helper.
ImageTransportSurface* surface_;
« no previous file with comments | « no previous file | content/common/gpu/image_transport_surface.cc » ('j') | content/common/gpu/image_transport_surface_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698