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

Unified Diff: content/common/gpu/image_transport_surface_linux.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: updating with recent changes Created 9 years, 3 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_linux.h
diff --git a/content/common/gpu/image_transport_surface_linux.h b/content/common/gpu/image_transport_surface_linux.h
index b146ab0547ab3e11eee385f07e97d0b73f0253b1..71608d5c7fb7a6c14681727e20a05ea817dd5669 100644
--- a/content/common/gpu/image_transport_surface_linux.h
+++ b/content/common/gpu/image_transport_surface_linux.h
@@ -38,6 +38,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>
@@ -89,6 +90,9 @@ class ImageTransportHelper : public IPC::Channel::Listener {
// Backbuffer resize callback.
void Resize(gfx::Size size);
+ // Backbuffer visibility changed callback
+ void SurfaceVisible(bool visible);
+
// Weak pointers that to objects that outlive this helper.
ImageTransportSurface* surface_;
GpuChannelManager* manager_;

Powered by Google App Engine
This is Rietveld 408576698