Changeset 220395 in webkit


Ignore:
Timestamp:
Aug 8, 2017 1:36:38 AM (7 years ago)
Author:
zandobersek@gmail.com
Message:

[TexMap] Group GL header file inclusions in a single header file
https://bugs.webkit.org/show_bug.cgi?id=175313

Reviewed by Carlos Garcia Campos.

Add a helper header file to the TextureMapper subsystem that includes
the OpenGL headers, properly addressing the build configuration to
include headers as provided by either libepoxy, the OpenGL ES library,
or the OpenGL library.

TextureMapperContextAttributes implementation file is the only one
that can leverage the header at the moment, but more will follow.

  • platform/graphics/texmap/TextureMapperContextAttributes.cpp:
  • platform/graphics/texmap/TextureMapperGLHeaders.h: Copied from Source/WebCore/platform/graphics/texmap/TextureMapperContextAttributes.cpp.
Location:
trunk/Source/WebCore
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r220393 r220395  
     12017-08-08  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [TexMap] Group GL header file inclusions in a single header file
     4        https://bugs.webkit.org/show_bug.cgi?id=175313
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Add a helper header file to the TextureMapper subsystem that includes
     9        the OpenGL headers, properly addressing the build configuration to
     10        include headers as provided by either libepoxy, the OpenGL ES library,
     11        or the OpenGL library.
     12
     13        TextureMapperContextAttributes implementation file is the only one
     14        that can leverage the header at the moment, but more will follow.
     15
     16        * platform/graphics/texmap/TextureMapperContextAttributes.cpp:
     17        * platform/graphics/texmap/TextureMapperGLHeaders.h: Copied from Source/WebCore/platform/graphics/texmap/TextureMapperContextAttributes.cpp.
     18
    1192017-08-08  Wenson Hsieh  <wenson_hsieh@apple.com>
    220
  • trunk/Source/WebCore/platform/graphics/texmap/TextureMapperContextAttributes.cpp

    r220392 r220395  
    2929#if USE(TEXTURE_MAPPER_GL)
    3030
     31#include "TextureMapperGLHeaders.h"
    3132#include <wtf/text/WTFString.h>
    32 
    33 #if USE(LIBEPOXY)
    34 #include <epoxy/gl.h>
    35 #elif USE(OPENGL_ES_2)
    36 #include <GLES2/gl2.h>
    37 #else
    38 #include "OpenGLShims.h"
    39 #endif
    4033
    4134namespace WebCore {
Note: See TracChangeset for help on using the changeset viewer.