~osomon/oxide/i18n

« back to all changes in this revision

Viewing changes to patches/enable-glx-on-ozone.patch

  • Committer: Olivier Tilloy
  • Date: 2014-04-08 10:03:11 UTC
  • mfrom: (312.2.173 oxide)
  • Revision ID: olivier.tilloy@canonical.com-20140408100311-b3zb7q1jfrevbrf1
Merge the latest changes from trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
diff --git a/build/linux/system.gyp b/build/linux/system.gyp
6
6
--- a/build/linux/system.gyp
7
7
+++ b/build/linux/system.gyp
8
 
@@ -106,52 +106,16 @@
 
8
@@ -110,52 +110,16 @@
9
9
           ],
10
10
         },
11
11
       ],  # targets
58
58
             ],
59
59
           },
60
60
           'link_settings': {
61
 
@@ -159,33 +123,16 @@
 
61
@@ -163,33 +127,16 @@
62
62
               '<!@(<(pkg-config) --libs-only-L --libs-only-other xcursor)',
63
63
             ],
64
64
             'libraries': [
92
92
             ],
93
93
           },
94
94
           'link_settings': {
95
 
@@ -193,33 +140,16 @@
 
95
@@ -197,33 +144,16 @@
96
96
               '<!@(<(pkg-config) --libs-only-L --libs-only-other xdamage)',
97
97
             ],
98
98
             'libraries': [
126
126
             ],
127
127
           },
128
128
           'link_settings': {
129
 
@@ -978,16 +908,86 @@
 
129
@@ -985,16 +915,86 @@
130
130
                 ],
131
131
               },
132
132
             }],
216
216
diff --git a/ui/gl/gl.gyp b/ui/gl/gl.gyp
217
217
--- a/ui/gl/gl.gyp
218
218
+++ b/ui/gl/gl.gyp
219
 
@@ -186,17 +186,17 @@
 
219
@@ -191,17 +191,17 @@
220
220
         ],
221
221
         }],
222
222
         ['OS in ("android", "linux")', {
323
323
diff --git a/ui/gl/gl_image_glx.cc b/ui/gl/gl_image_glx.cc
324
324
--- a/ui/gl/gl_image_glx.cc
325
325
+++ b/ui/gl/gl_image_glx.cc
326
 
@@ -7,32 +7,38 @@ extern "C" {
 
326
@@ -7,30 +7,36 @@ extern "C" {
327
327
 }
328
328
 
329
329
 #include "ui/gl/gl_image_glx.h"
344
344
 //   scoped_ptr<XVisualInfo, ScopedPtrXFree> foo(...);
345
345
 // where "XVisualInfo" is any X type that is freed with XFree.
346
346
 struct ScopedPtrXFree {
347
 
   void operator()(void* x) const {
348
 
     ::XFree(x);
349
 
   }
 
347
   void operator()(void* x) const { ::XFree(x); }
350
348
 };
351
349
 
352
350
+Display* GetDefaultXDisplay() {
362
360
 }
363
361
 
364
362
 int TextureFormat(int depth) {
365
 
@@ -40,17 +46,17 @@ int TextureFormat(int depth) {
 
363
@@ -38,17 +44,17 @@ int TextureFormat(int depth) {
366
364
     return GLX_TEXTURE_FORMAT_RGBA_EXT;
367
365
 
368
366
   return GLX_TEXTURE_FORMAT_RGB_EXT;
371
369
 }  // namespace anonymous
372
370
 
373
371
 GLImageGLX::GLImageGLX(gfx::PluginWindowHandle window)
374
 
-  : display_(base::MessagePumpForUI::GetDefaultXDisplay()),
375
 
+  : display_(GetDefaultXDisplay()),
376
 
     window_(window),
377
 
     pixmap_(0),
378
 
     glx_pixmap_(0) {
379
 
 }
380
 
 
381
 
 GLImageGLX::~GLImageGLX() {
382
 
   Destroy();
383
 
 }
 
372
-    : display_(base::MessagePumpForUI::GetDefaultXDisplay()),
 
373
+    : display_(GetDefaultXDisplay()),
 
374
       window_(window),
 
375
       pixmap_(0),
 
376
       glx_pixmap_(0) {}
 
377
 
 
378
 GLImageGLX::~GLImageGLX() { Destroy(); }
 
379
 
 
380
 bool GLImageGLX::Initialize() {
 
381
   if (!GLSurfaceGLX::IsTextureFromPixmapSupported()) {
384
382
diff --git a/ui/gl/gl_implementation.cc b/ui/gl/gl_implementation.cc
385
383
--- a/ui/gl/gl_implementation.cc
386
384
+++ b/ui/gl/gl_implementation.cc
404
402
 #endif
405
403
 
406
404
 GLImplementation GetNamedGLImplementation(const std::string& name) {
407
 
diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc
408
 
--- a/ui/gl/gl_surface_egl.cc
409
 
+++ b/ui/gl/gl_surface_egl.cc
410
 
@@ -761,17 +761,17 @@ EGLSurface SurfacelessEGL::GetHandle() {
411
 
 
412
 
 void* SurfacelessEGL::GetShareHandle() {
413
 
   return NULL;
414
 
 }
415
 
 
416
 
 SurfacelessEGL::~SurfacelessEGL() {
417
 
 }
418
 
 
419
 
-#if defined(ANDROID) || defined(USE_OZONE)
420
 
+#if 0
421
 
 
422
 
 // A thin subclass of |GLSurfaceOSMesa| that can be used in place
423
 
 // of a native hardware-provided surface when a native surface
424
 
 // provider is not available.
425
 
 class GLSurfaceOSMesaHeadless : public GLSurfaceOSMesa {
426
 
  public:
427
 
   explicit GLSurfaceOSMesaHeadless(gfx::AcceleratedWidget window);
428
 
 
429
405
diff --git a/ui/gl/gl_surface_glx.cc b/ui/gl/gl_surface_glx.cc
430
406
--- a/ui/gl/gl_surface_glx.cc
431
407
+++ b/ui/gl/gl_surface_glx.cc