~vanvugt/mir/fix-1642473

« back to all changes in this revision

Viewing changes to src/client/error_buffer.h

  • Committer: Tarmac
  • Author(s): Kevin DuBois
  • Date: 2016-11-14 00:28:49 UTC
  • mfrom: (3789.4.34 mirbuffer-import)
  • Revision ID: tarmac-20161114002849-akck6hrqb3m2og1b
client: propose that MirBuffer is the EGLNativePixmapType for the mir platform. Include an example of buffer import to GL texture via the mir client api.

Also introduce the MIR_EXTENSION_ANDROID_EGL, with hooks for getting the EGLNativePixmapType and EGLNativeDisplayType. EGLNativeWindowType will be added after some MirRenderSurface improvements are proposed.

note: egldiamond will only import buffers on android, as the example shim subloads EGL_NATIVE_BUFFER_ANDROID. Other platforms have a sensible fallback.

Approved by Andreas Pokorny, mir-ci-bot, Chris Halse Rogers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifndef MIR_CLIENT_ERROR_BUFFER_H
20
20
#define MIR_CLIENT_ERROR_BUFFER_H
21
21
 
22
 
#include "mir_buffer.h"
 
22
#include "mir/mir_buffer.h"
23
23
 
24
24
namespace mir
25
25
{