Bug 919987 - pass surface as an EGLSurface, not a void* - r=jgilbert

This commit is contained in:
Benoit Jacob 2013-11-15 12:33:51 -05:00
parent 149a3ba19b
commit bb3f8d22ce
2 changed files with 2 additions and 2 deletions

View File

@ -2460,7 +2460,7 @@ public:
* If surf is null, this removes any previously set override, and makes the * If surf is null, this removes any previously set override, and makes the
* context current again against its primary surface. * context current again against its primary surface.
*/ */
virtual void SetEGLSurfaceOverride(void* surf) { virtual void SetEGLSurfaceOverride(EGLSurface surf) {
MOZ_CRASH("Must be called against a GLContextEGL."); MOZ_CRASH("Must be called against a GLContextEGL.");
} }

View File

@ -431,7 +431,7 @@ public:
} }
#endif #endif
virtual void SetEGLSurfaceOverride(void* surf) MOZ_OVERRIDE { virtual void SetEGLSurfaceOverride(EGLSurface surf) MOZ_OVERRIDE {
if (Screen()) { if (Screen()) {
/* Blit `draw` to `read` if we need to, before we potentially juggle /* Blit `draw` to `read` if we need to, before we potentially juggle
* `read` around. If we don't, we might attach a different `read`, * `read` around. If we don't, we might attach a different `read`,