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

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

Issue 8513013: Plumb the partial swap though image transport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now with a few compile fixes (tested Win, Mac, Linux, and Aura) Created 9 years, 1 month 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 8449f81412dd35c3b0d99cb8ea073fe9eca2f60e..b7d9676f496d731e67339b0375913550e7dbe06d 100644
--- a/content/common/gpu/image_transport_surface_mac.cc
+++ b/content/common/gpu/image_transport_surface_mac.cc
@@ -34,6 +34,8 @@ class IOSurfaceImageTransportSurface : public gfx::PbufferGLSurfaceCGL,
virtual void Destroy() OVERRIDE;
virtual bool IsOffscreen() OVERRIDE;
virtual bool SwapBuffers() OVERRIDE;
+ virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE;
+ virtual std::string GetExtensions() OVERRIDE;
virtual gfx::Size GetSize() OVERRIDE;
virtual bool OnMakeCurrent(gfx::GLContext* context) OVERRIDE;
virtual unsigned int GetBackingFrameBufferObject() OVERRIDE;
@@ -43,6 +45,7 @@ class IOSurfaceImageTransportSurface : public gfx::PbufferGLSurfaceCGL,
virtual void OnNewSurfaceACK(uint64 surface_id,
TransportDIB::Handle shm_handle) OVERRIDE;
virtual void OnBuffersSwappedACK() OVERRIDE;
+ virtual void OnPostSubBufferACK() OVERRIDE;
virtual void OnResizeViewACK() OVERRIDE;
virtual void OnResize(gfx::Size size) OVERRIDE;
@@ -86,6 +89,7 @@ class TransportDIBImageTransportSurface : public gfx::PbufferGLSurfaceCGL,
virtual void Destroy() OVERRIDE;
virtual bool IsOffscreen() OVERRIDE;
virtual bool SwapBuffers() OVERRIDE;
+ virtual std::string GetExtensions() OVERRIDE;
virtual gfx::Size GetSize() OVERRIDE;
virtual bool OnMakeCurrent(gfx::GLContext* context) OVERRIDE;
virtual unsigned int GetBackingFrameBufferObject() OVERRIDE;
@@ -93,6 +97,7 @@ class TransportDIBImageTransportSurface : public gfx::PbufferGLSurfaceCGL,
protected:
// ImageTransportSurface implementation
virtual void OnBuffersSwappedACK() OVERRIDE;
+ virtual void OnPostSubBufferACK() OVERRIDE;
virtual void OnNewSurfaceACK(uint64 surface_id,
TransportDIB::Handle shm_handle) OVERRIDE;
virtual void OnResizeViewACK() OVERRIDE;
@@ -226,6 +231,16 @@ bool IOSurfaceImageTransportSurface::SwapBuffers() {
return true;
}
+bool IOSurfaceImageTransportSurface::PostSubBuffer(
+ int x, int y, int width, int height) {
+ NOTREACHED();
+ return false;
+}
+
+std::string IOSurfaceImageTransportSurface::GetExtensions() {
+ return gfx::GLSurface::GetExtensions();
+}
+
gfx::Size IOSurfaceImageTransportSurface::GetSize() {
return size_;
}
@@ -234,6 +249,10 @@ void IOSurfaceImageTransportSurface::OnBuffersSwappedACK() {
helper_->SetScheduled(true);
}
+void IOSurfaceImageTransportSurface::OnPostSubBufferACK() {
+ NOTREACHED();
+}
+
void IOSurfaceImageTransportSurface::OnNewSurfaceACK(
uint64 surface_id,
TransportDIB::Handle /* shm_handle */) {
@@ -432,6 +451,10 @@ bool TransportDIBImageTransportSurface::SwapBuffers() {
return true;
}
+std::string TransportDIBImageTransportSurface::GetExtensions() {
+ return gfx::GLSurface::GetExtensions();
+}
+
gfx::Size TransportDIBImageTransportSurface::GetSize() {
return size_;
}
@@ -440,6 +463,10 @@ void TransportDIBImageTransportSurface::OnBuffersSwappedACK() {
helper_->SetScheduled(true);
}
+void TransportDIBImageTransportSurface::OnPostSubBufferACK() {
+ NOTREACHED();
+}
+
void TransportDIBImageTransportSurface::OnNewSurfaceACK(
uint64 surface_id,
TransportDIB::Handle shm_handle) {
« no previous file with comments | « content/common/gpu/image_transport_surface_linux.cc ('k') | content/common/gpu/image_transport_surface_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698