~ubuntu-branches/ubuntu/saucy/gnash/saucy-proposed

« back to all changes in this revision

Viewing changes to gui/fb/fb_glue_gles1.cpp

  • Committer: Package Import Robot
  • Author(s): Micah Gersten
  • Date: 2012-03-04 03:19:06 UTC
  • mfrom: (1.1.18) (3.1.24 sid)
  • Revision ID: package-import@ubuntu.com-20120304031906-p6q5rnb0xhgpof7o
Tags: 0.8.10-3ubuntu1
* Merge from Debian testing (FFe: LP: #940876), remaining changes:
  - Use mozilla-flashplugin as the alternative for now
  - Change xulrunner-dev build dep to firefox-dev
* Drop the plugin API porting patch, this has been fixed upstream
  - drop debian/patches*
* Drop the following change as we want Adobe's player to take priority
  if it's installed
  - Set alternative priority to 50 so that it matches Adobe Flash's priority

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
    if (_display == EGL_NO_DISPLAY) {
96
96
        return false;
97
97
    }
98
 
    log_trace("EGL: getDisplay ok");
 
98
    log_trace(_("EGL: getDisplay ok"));
99
99
    
100
100
    result = eglInitialize(_display, &majorVersion, &minorVersion);
101
101
    if (result == EGL_FALSE) {
102
102
        return false;
103
103
    }
104
 
    log_trace("EGL: initialize ok");
 
104
    log_trace(_("EGL: initialize ok"));
105
105
    
106
106
    result = eglChooseConfig(_display, main_attrib_list, &_config, 1,
107
107
                             &numOfConfigs);
108
108
    if (result == EGL_FALSE || numOfConfigs != 1) {
109
109
        return false;
110
110
    }
111
 
    log_trace("EGL: config ok");
 
111
    log_trace(_("EGL: config ok"));
112
112
    
113
113
    _surface = eglCreateWindowSurface(_display, _config, (NativeWindowType)0,
114
114
                                      NULL);
115
115
    if (eglGetError () != EGL_SUCCESS) {
116
116
        return false;
117
117
    }
118
 
    log_trace("EGL: surface ok");
 
118
    log_trace(_("EGL: surface ok"));
119
119
    
120
120
    _context = eglCreateContext(_display, _config, NULL, NULL);
121
121
    if (eglGetError () != EGL_SUCCESS) {
122
122
        return false;
123
123
    }
124
 
    log_trace("EGL: context ok");
 
124
    log_trace(_("EGL: context ok"));
125
125
    
126
126
    eglMakeCurrent(_display, _surface, _surface, _context);
127
127
    if (eglGetError () != EGL_SUCCESS) {
128
128
        return false;
129
129
    }
130
 
    log_trace("EGL: current ok");
 
130
    log_trace(_("EGL: current ok"));
131
131
    
132
132
    const EGLint pbuffer_config_list[] = {
133
133
        EGL_SURFACE_TYPE, EGL_PBUFFER_BIT,
143
143
    if (result == EGL_FALSE || numOfConfigs == 0) {
144
144
        return false;
145
145
    }
146
 
    log_trace("EGL: pbuffer config ok");
 
146
    // log_trace("EGL: pbuffer config ok");
147
147
    
148
148
    const EGLint pbuffer_attrib_list[] = {
149
149
        EGL_WIDTH, EGL_MAX_PBUFFER_WIDTH,