diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-16 08:29:51 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-16 08:29:51 +0000 |
commit | 3de3805b5f580622ba884f0a3892b70a6e232654 (patch) | |
tree | c7302e923919e49b654fcb8f4c50fa115d58addc /content | |
parent | 26b2a65aaa4e9cc352f90a1a2ac5619edd8a2e54 (diff) | |
download | chromium_src-3de3805b5f580622ba884f0a3892b70a6e232654.zip chromium_src-3de3805b5f580622ba884f0a3892b70a6e232654.tar.gz chromium_src-3de3805b5f580622ba884f0a3892b70a6e232654.tar.bz2 |
Restrict usage of mesa headers to targets that really need them
Many targets were getting mesa headers on their include paths even
though they never used them. This limits use of osmesa.h to the only
target that actually needs to interface directly with osmesa and
restricts use of the third_party/mesa/ headers to targets that need to
use the desktop GL bindings.
R=piman@chromium.org
Review URL: https://codereview.chromium.org/476403002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290136 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r-- | content/common/gpu/image_transport_surface_mac.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content/common/gpu/image_transport_surface_mac.mm b/content/common/gpu/image_transport_surface_mac.mm index c193f6f..3a48063 100644 --- a/content/common/gpu/image_transport_surface_mac.mm +++ b/content/common/gpu/image_transport_surface_mac.mm @@ -18,7 +18,8 @@ namespace { class DRTSurfaceOSMesa : public gfx::GLSurfaceOSMesa { public: // Size doesn't matter, the surface is resized to the right size later. - DRTSurfaceOSMesa() : GLSurfaceOSMesa(GL_RGBA, gfx::Size(1, 1)) {} + DRTSurfaceOSMesa() + : GLSurfaceOSMesa(gfx::OSMesaSurfaceFormatRGBA, gfx::Size(1, 1)) {} // Implement a subset of GLSurface. virtual bool SwapBuffers() OVERRIDE; |