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

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

Issue 10663003: Merge the IPCs used for GPU process synchronization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 6 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') | content/common/gpu/image_transport_surface_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/image_transport_surface_linux.cc
diff --git a/content/common/gpu/image_transport_surface_linux.cc b/content/common/gpu/image_transport_surface_linux.cc
index 0f9984f4867f48e427882e5efe8b5c13ca3eff1d..7691dd7f6774035730cce4b03d9c9bba3705c481 100644
--- a/content/common/gpu/image_transport_surface_linux.cc
+++ b/content/common/gpu/image_transport_surface_linux.cc
@@ -100,8 +100,7 @@ class EGLImageTransportSurface
// ImageTransportSurface implementation
virtual void OnNewSurfaceACK(
uint64 surface_handle, TransportDIB::Handle shm_handle) OVERRIDE;
- virtual void OnBuffersSwappedACK() OVERRIDE;
- virtual void OnPostSubBufferACK() OVERRIDE;
+ virtual void OnBufferPresented() OVERRIDE;
virtual void OnResizeViewACK() OVERRIDE;
virtual void OnResize(gfx::Size size) OVERRIDE;
@@ -157,8 +156,7 @@ class GLXImageTransportSurface
// ImageTransportSurface implementation:
virtual void OnNewSurfaceACK(
uint64 surface_handle, TransportDIB::Handle shm_handle) OVERRIDE;
- virtual void OnBuffersSwappedACK() OVERRIDE;
- virtual void OnPostSubBufferACK() OVERRIDE;
+ virtual void OnBufferPresented() OVERRIDE;
virtual void OnResizeViewACK() OVERRIDE;
virtual void OnResize(gfx::Size size) OVERRIDE;
@@ -216,8 +214,7 @@ class OSMesaImageTransportSurface : public ImageTransportSurface,
// ImageTransportSurface implementation:
virtual void OnNewSurfaceACK(
uint64 surface_handle, TransportDIB::Handle shm_handle) OVERRIDE;
- virtual void OnBuffersSwappedACK() OVERRIDE;
- virtual void OnPostSubBufferACK() OVERRIDE;
+ virtual void OnBufferPresented() OVERRIDE;
virtual void OnResizeViewACK() OVERRIDE;
virtual void OnResize(gfx::Size size) OVERRIDE;
@@ -519,11 +516,7 @@ void EGLImageTransportSurface::OnNewSurfaceACK(
helper_->SetScheduled(true);
}
-void EGLImageTransportSurface::OnBuffersSwappedACK() {
- helper_->SetScheduled(true);
-}
-
-void EGLImageTransportSurface::OnPostSubBufferACK() {
+void EGLImageTransportSurface::OnBufferPresented() {
helper_->SetScheduled(true);
}
@@ -760,11 +753,7 @@ void GLXImageTransportSurface::OnNewSurfaceACK(
uint64 surface_handle, TransportDIB::Handle /*shm_handle*/) {
}
-void GLXImageTransportSurface::OnBuffersSwappedACK() {
- helper_->SetScheduled(true);
-}
-
-void GLXImageTransportSurface::OnPostSubBufferACK() {
+void GLXImageTransportSurface::OnBufferPresented() {
helper_->SetScheduled(true);
}
@@ -902,11 +891,7 @@ std::string OSMesaImageTransportSurface::GetExtensions() {
return extensions;
}
-void OSMesaImageTransportSurface::OnBuffersSwappedACK() {
- helper_->SetScheduled(true);
-}
-
-void OSMesaImageTransportSurface::OnPostSubBufferACK() {
+void OSMesaImageTransportSurface::OnBufferPresented() {
helper_->SetScheduled(true);
}
« no previous file with comments | « content/common/gpu/image_transport_surface.cc ('k') | content/common/gpu/image_transport_surface_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698