egl/egltest/endpointtestsuite/automated/src/eglendpointwrap.cpp
changeset 136 62bb7c97884c
parent 98 bf7481649c98
equal deleted inserted replaced
121:d72fc2aace31 136:62bb7c97884c
    20 */
    20 */
    21 
    21 
    22 #include <e32debug.h>
    22 #include <e32debug.h>
    23 #include "eglendpointwrap.h"
    23 #include "eglendpointwrap.h"
    24 #include "egltest_commscommon.h"
    24 #include "egltest_commscommon.h"
    25 
       
    26 
    25 
    27 
    26 
    28 /*
    27 /*
    29  * TEglEndpointWrap is a simple class that presents all of the EGL endpoint
    28  * TEglEndpointWrap is a simple class that presents all of the EGL endpoint
    30  * extension functions without the user needing to perform an eglGetProcAddress()
    29  * extension functions without the user needing to perform an eglGetProcAddress()
    72         }
    71         }
    73     return func;
    72     return func;
    74     }
    73     }
    75 
    74 
    76 
    75 
    77 EGLEndpointNOK TEglEndpointWrap::CreateEndpoint(EGLDisplay dpy, EGLenum type, EGLenum source_type, EGLEndpointSourceNOK source, const EGLint *attrib_list) const
    76 EGLEndpointNOK TEglEndpointWrap::CreateEndpoint(EGLDisplay dpy, EGLenum type, EGLenum source_type, 
       
    77                                                 EGLEndpointSourceNOK source, const EGLint *attrib_list) const
    78     {
    78     {
    79     ENDPOINT_ASSERT_DEBUG(iError == KErrNone, User::Invariant());
    79     ENDPOINT_ASSERT_DEBUG(iError == KErrNone, User::Invariant());
    80     return ipfnEglCreateEndpointNOK(dpy, type, source_type, source, attrib_list);
    80     return ipfnEglCreateEndpointNOK(dpy, type, source_type, source, attrib_list);
    81     }
    81     }
    82 
    82 
   128     ENDPOINT_ASSERT_DEBUG(iError == KErrNone, User::Invariant());
   128     ENDPOINT_ASSERT_DEBUG(iError == KErrNone, User::Invariant());
   129     return ipfnEglReleaseImageNOK(dpy, endpoint, image, api);
   129     return ipfnEglReleaseImageNOK(dpy, endpoint, image, api);
   130     }
   130     }
   131 
   131 
   132 
   132 
   133 EGLint TEglEndpointWrap::GetEndpointDirtyArea(EGLDisplay dpy, EGLEndpointNOK endpoint, EGLint* rects, EGLint start_rect, EGLint max_rects, EGLBoolean collapse) const
   133 EGLint TEglEndpointWrap::GetEndpointDirtyArea(EGLDisplay dpy, EGLEndpointNOK endpoint, EGLint* rects, 
       
   134                                               EGLint start_rect, EGLint max_rects, EGLBoolean collapse) const
   134     {
   135     {
   135     ENDPOINT_ASSERT_DEBUG(iError == KErrNone, User::Invariant());
   136     ENDPOINT_ASSERT_DEBUG(iError == KErrNone, User::Invariant());
   136     return ipfnEglGetEndpointDirtyAreaNOK(dpy, endpoint, rects, start_rect, max_rects, collapse);
   137     return ipfnEglGetEndpointDirtyAreaNOK(dpy, endpoint, rects, start_rect, max_rects, collapse);
   137     }
   138     }
   138 
   139