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

Unified Diff: content/common/gpu/image_transport_surface_mac.cc

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: fixing mock gles2 cmd decoder 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_mac.cc
diff --git a/content/common/gpu/image_transport_surface_mac.cc b/content/common/gpu/image_transport_surface_mac.cc
index 44e72e094d3d18c6974504f5c024e0bba3440dae..b40697b8ce73822db19f8032f374669cad681767 100644
--- a/content/common/gpu/image_transport_surface_mac.cc
+++ b/content/common/gpu/image_transport_surface_mac.cc
@@ -44,6 +44,7 @@ class IOSurfaceImageTransportSurface : public gfx::PbufferGLSurfaceCGL,
TransportDIB::Handle shm_handle) OVERRIDE;
virtual void OnBuffersSwappedACK() OVERRIDE;
virtual void OnResize(gfx::Size size) OVERRIDE;
+ virtual void OnSurfaceVisible(bool visible) OVERRIDE;
private:
virtual ~IOSurfaceImageTransportSurface() OVERRIDE;
@@ -92,6 +93,7 @@ class TransportDIBImageTransportSurface : public gfx::PbufferGLSurfaceCGL,
virtual void OnNewSurfaceACK(uint64 surface_id,
TransportDIB::Handle shm_handle) OVERRIDE;
virtual void OnResize(gfx::Size size) OVERRIDE;
+ virtual void OnSurfaceVisible(bool visible) OVERRIDE;
private:
virtual ~TransportDIBImageTransportSurface() OVERRIDE;
@@ -306,6 +308,9 @@ void IOSurfaceImageTransportSurface::OnResize(gfx::Size size) {
helper_->SetScheduled(false);
}
+void IOSurfaceImageTransportSurface::OnSurfaceVisible(bool visible) {
+}
+
TransportDIBImageTransportSurface::TransportDIBImageTransportSurface(
GpuChannelManager* manager,
int32 render_view_id,
@@ -435,6 +440,9 @@ void TransportDIBImageTransportSurface::OnResize(gfx::Size size) {
helper_->SetScheduled(false);
}
+void TransportDIBImageTransportSurface::OnSurfaceVisible(bool visible) {
+}
+
} // namespace
// static

Powered by Google App Engine
This is Rietveld 408576698