From: Matthew Waters Date: Thu, 29 Jan 2015 04:26:21 +0000 (+1100) Subject: gl/caopengllayer: draw asynchronously X-Git-Tag: 1.19.3~507^2~9479 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ab0e1517f2d5dffc63285d790a5b7fd709bdf0a;p=platform%2Fupstream%2Fgstreamer.git gl/caopengllayer: draw asynchronously This essentially makes the CAOpenGLLayer draw every refresh cycle. --- diff --git a/gst-libs/gst/gl/cocoa/gstglcaopengllayer.m b/gst-libs/gst/gl/cocoa/gstglcaopengllayer.m index 42afd88..bb7e320 100644 --- a/gst-libs/gst/gl/cocoa/gstglcaopengllayer.m +++ b/gst-libs/gst/gl/cocoa/gstglcaopengllayer.m @@ -40,9 +40,11 @@ - (id)initWithGstGLContext:(GstGLContextCocoa *)parent_gl_context { [super init]; - GST_TRACE ("init CAOpenGLLayer"); + GST_LOG ("init CAOpenGLLayer"); self->gst_gl_context = parent_gl_context; + self.asynchronous = YES; + self.needsDisplayOnBoundsChange = YES; return self; } @@ -109,6 +111,8 @@ - (void)resize:(NSRect)bounds { const GstGLFuncs *gl = ((GstGLContext *)self->gst_gl_context)->gl_vtable; + GST_LOG ("resizing"); + gl->GetIntegerv (GL_VIEWPORT, self->expected_dims); }