Changeset 122175 in webkit
- Timestamp:
- Jul 9, 2012 6:06:52 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 48 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r122089 r122175 1 2012-07-09 No'am Rosenthal <noam.rosenthal@nokia.com> 2 3 Shared code that is guarded with ENABLE(WEBGL) should be guarded with USE() 4 https://bugs.webkit.org/show_bug.cgi?id=90506 5 6 Reviewed by Martin Robinson. 7 8 Made USE(3D_GRAPHICS) default to true when ENABLE(WEBGL) is true. 9 Also updated the Qt default to always use TEXTURE_MAPPER, and to use TEXTURE_MAPPER_GL when 10 3D_GRAPHICS is used. 11 12 * wtf/Platform.h: 13 1 14 2012-07-08 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 15 -
trunk/Source/WTF/wtf/Platform.h
r122089 r122175 1015 1015 #endif 1016 1016 1017 1018 /* Qt always uses Texture Mapper */ 1019 #if PLATFORM(QT) 1020 #define WTF_USE_TEXTURE_MAPPER 1 1021 #if USE(3D_GRAPHICS) 1022 #define WTF_USE_TEXTURE_MAPPER_GL 1 1023 #endif 1024 #endif 1025 1026 #if ENABLE(WEBGL) && !defined(WTF_USE_3D_GRAPHICS) 1027 #define WTF_USE_3D_GRAPHICS 1 1028 #endif 1029 1017 1030 /* Compositing on the UI-process in WebKit2 */ 1018 1031 #if PLATFORM(QT) -
trunk/Source/WebCore/ChangeLog
r122174 r122175 1 2012-07-09 No'am Rosenthal <noam.rosenthal@nokia.com> 2 3 Shared code that is guarded with ENABLE(WEBGL) should be guarded with USE() 4 https://bugs.webkit.org/show_bug.cgi?id=90506 5 6 Reviewed by Martin Robinson. 7 8 GraphicsContext3D, ANGLEWebKitBridge and Extensions3D are now guarded with USE(3D_GRAPHICS) 9 instead of ENABLE(WEBGL). 10 11 No new tests, build changes only. 12 13 * Target.pri: 14 Removed references to unused files. 15 16 * WebCore.pri: 17 Updated the Qt build so that the basic 3D-graphics sources can be compiled even when 18 WebGL is disabled. 19 20 * platform/graphics/ANGLEWebKitBridge.cpp: 21 * platform/graphics/GraphicsContext3D.cpp: 22 * platform/graphics/opengl/Extensions3DOpenGL.cpp: 23 * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp: 24 * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp: 25 * platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp: 26 * platform/graphics/qt/GraphicsContext3DQt.cpp: 27 * platform/qt/QWebPageClient.h: 28 * platform/graphics/OpenGLShims.cpp: 29 * platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp: 30 * platform/graphics/cairo/DrawingBufferCairo.cpp: 31 * platform/graphics/cairo/GLContext.h: 32 (GLContext): 33 * platform/graphics/cairo/GraphicsContext3DCairo.cpp: 34 * platform/graphics/cairo/GraphicsContext3DPrivate.cpp: 35 * platform/graphics/cg/GraphicsContext3DCG.cpp: 36 * platform/graphics/clutter/DrawingBufferClutter.cpp: 37 * platform/graphics/clutter/GraphicsContext3DClutter.cpp: 38 * platform/graphics/clutter/GraphicsContext3DPrivate.cpp: 39 * platform/graphics/efl/GraphicsContext3DEfl.cpp: 40 * platform/graphics/efl/GraphicsContext3DPrivate.cpp: 41 * platform/graphics/filters/CustomFilterCompiledProgram.cpp: 42 * platform/graphics/filters/CustomFilterCompiledProgram.h: 43 * platform/graphics/filters/CustomFilterGlobalContext.cpp: 44 * platform/graphics/filters/CustomFilterGlobalContext.h: 45 * platform/graphics/filters/CustomFilterMesh.cpp: 46 * platform/graphics/filters/CustomFilterMesh.h: 47 * platform/graphics/filters/CustomFilterProgram.cpp: 48 (WebCore): 49 * platform/graphics/filters/CustomFilterProgram.h: 50 * platform/graphics/filters/FECustomFilter.cpp: 51 * platform/graphics/filters/FECustomFilter.h: 52 * platform/graphics/glx/GLContextGLX.cpp: 53 (WebCore): 54 * platform/graphics/glx/GLContextGLX.h: 55 (GLContextGLX): 56 * platform/graphics/gpu/DrawingBuffer.cpp: 57 * platform/graphics/gpu/mac/DrawingBufferMac.mm: 58 * platform/graphics/gpu/qt/DrawingBufferQt.cpp: 59 * platform/graphics/mac/GraphicsContext3DMac.mm: 60 * platform/graphics/qt/Extensions3DQt.cpp: Removed. 61 * platform/graphics/qt/Extensions3DQt.h: Removed. 62 * platform/graphics/skia/GraphicsContext3DSkia.cpp: 63 * platform/graphics/texmap/GraphicsLayerTextureMapper.h: 64 Chaned ENABLE(WEBGL) to USE(3D_GRAPHICS) 65 1 66 2012-07-09 Yongjun Zhang <yongjun_zhang@apple.com> 2 67 -
trunk/Source/WebCore/Target.pri
r122159 r122175 3904 3904 html/canvas/WebGLUniformLocation.h \ 3905 3905 html/canvas/WebGLVertexArrayObjectOES.h \ 3906 platform/graphics/ANGLEWebKitBridge.h \3907 platform/graphics/Extensions3D.h \3908 platform/graphics/GraphicsContext3D.h \3909 platform/graphics/gpu/DrawingBuffer.h \3910 platform/graphics/qt/Extensions3DQt.h3911 3906 3912 3907 v8 { … … 3946 3941 html/canvas/WebGLTexture.cpp \ 3947 3942 html/canvas/WebGLUniformLocation.cpp \ 3948 html/canvas/WebGLVertexArrayObjectOES.cpp \ 3943 html/canvas/WebGLVertexArrayObjectOES.cpp 3944 } 3945 3946 contains(DEFINES, WTF_USE_3D_GRAPHICS=1) { 3947 HEADERS += \ 3948 platform/graphics/ANGLEWebKitBridge.h \ 3949 platform/graphics/Extensions3D.h \ 3950 platform/graphics/GraphicsContext3D.h \ 3951 platform/graphics/gpu/DrawingBuffer.h \ 3952 platform/graphics/opengl/Extensions3DOpenGL.h \ 3953 platform/graphics/texmap/TextureMapperGL.h \ 3954 platform/graphics/texmap/TextureMapperShaderManager.h 3955 3956 SOURCES += \ 3949 3957 platform/graphics/ANGLEWebKitBridge.cpp \ 3950 3958 platform/graphics/GraphicsContext3D.cpp \ 3951 3959 platform/graphics/gpu/DrawingBuffer.cpp \ 3952 3960 platform/graphics/gpu/qt/DrawingBufferQt.cpp \ 3953 platform/graphics/qt/GraphicsContext3DQt.cpp 3954 3955 INCLUDEPATH += $$PWD/platform/graphics/gpu 3956 3957 contains(QT_CONFIG, opengl) | contains(QT_CONFIG, opengles2) { 3958 !contains(QT_CONFIG, opengles2) { 3959 SOURCES += platform/graphics/opengl/GraphicsContext3DOpenGL.cpp 3960 } else { 3961 SOURCES += platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp 3962 } 3963 3964 HEADERS += platform/graphics/opengl/Extensions3DOpenGL.h 3965 3966 SOURCES += \ 3967 platform/graphics/opengl/Extensions3DOpenGL.cpp \ 3968 platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp 3969 3970 ANGLE_DIR = $$replace(PWD, "WebCore", "ThirdParty/ANGLE") 3971 3972 INCLUDEPATH += $$ANGLE_DIR/src $$ANGLE_DIR/include 3973 3974 ANGLE_HEADERS += \ 3975 $$ANGLE_DIR/src/compiler/BaseTypes.h \ 3976 $$ANGLE_DIR/src/compiler/BuiltInFunctionEmulator.h \ 3977 $$ANGLE_DIR/src/compiler/Common.h \ 3978 $$ANGLE_DIR/src/compiler/ConstantUnion.h \ 3979 $$ANGLE_DIR/src/compiler/debug.h \ 3980 $$ANGLE_DIR/src/compiler/DetectRecursion.h \ 3981 $$ANGLE_DIR/src/compiler/ExtensionBehavior.h \ 3982 $$ANGLE_DIR/src/compiler/ForLoopUnroll.h \ 3983 $$ANGLE_DIR/src/compiler/glslang.h \ 3984 $$ANGLE_DIR/src/compiler/glslang_tab.h \ 3985 $$ANGLE_DIR/src/compiler/InfoSink.h \ 3986 $$ANGLE_DIR/src/compiler/InitializeDll.h \ 3987 $$ANGLE_DIR/src/compiler/InitializeGlobals.h \ 3988 $$ANGLE_DIR/src/compiler/Initialize.h \ 3989 $$ANGLE_DIR/src/compiler/InitializeParseContext.h \ 3990 $$ANGLE_DIR/src/compiler/intermediate.h \ 3991 $$ANGLE_DIR/src/compiler/localintermediate.h \ 3992 $$ANGLE_DIR/src/compiler/MMap.h \ 3993 $$ANGLE_DIR/src/compiler/MapLongVariableNames.h \ 3994 $$ANGLE_DIR/src/compiler/osinclude.h \ 3995 $$ANGLE_DIR/src/compiler/preprocessor/atom.h \ 3996 $$ANGLE_DIR/src/compiler/preprocessor/compile.h \ 3997 $$ANGLE_DIR/src/compiler/preprocessor/cpp.h \ 3998 $$ANGLE_DIR/src/compiler/preprocessor/length_limits.h \ 3999 $$ANGLE_DIR/src/compiler/preprocessor/memory.h \ 4000 $$ANGLE_DIR/src/compiler/preprocessor/parser.h \ 4001 $$ANGLE_DIR/src/compiler/preprocessor/preprocess.h \ 4002 $$ANGLE_DIR/src/compiler/preprocessor/scanner.h \ 4003 $$ANGLE_DIR/src/compiler/preprocessor/slglobals.h \ 4004 $$ANGLE_DIR/src/compiler/preprocessor/symbols.h \ 4005 $$ANGLE_DIR/src/compiler/preprocessor/tokens.h \ 4006 $$ANGLE_DIR/src/compiler/OutputESSL.h \ 4007 $$ANGLE_DIR/src/compiler/OutputGLSL.h \ 4008 $$ANGLE_DIR/src/compiler/OutputGLSLBase.h \ 4009 $$ANGLE_DIR/src/compiler/OutputHLSL.h \ 4010 $$ANGLE_DIR/src/compiler/ParseHelper.h \ 4011 $$ANGLE_DIR/src/compiler/PoolAlloc.h \ 4012 $$ANGLE_DIR/src/compiler/QualifierAlive.h \ 4013 $$ANGLE_DIR/src/compiler/RemoveTree.h \ 4014 $$ANGLE_DIR/src/compiler/SearchSymbol.h \ 4015 $$ANGLE_DIR/src/compiler/ShHandle.h \ 4016 $$ANGLE_DIR/src/compiler/SymbolTable.h \ 4017 $$ANGLE_DIR/src/compiler/TranslatorESSL.h \ 4018 $$ANGLE_DIR/src/compiler/TranslatorGLSL.h \ 4019 $$ANGLE_DIR/src/compiler/TranslatorHLSL.h \ 4020 $$ANGLE_DIR/src/compiler/Types.h \ 4021 $$ANGLE_DIR/src/compiler/UnfoldSelect.h \ 4022 $$ANGLE_DIR/src/compiler/util.h \ 4023 $$ANGLE_DIR/src/compiler/ValidateLimitations.h \ 4024 $$ANGLE_DIR/src/compiler/VariableInfo.h \ 4025 $$ANGLE_DIR/src/compiler/VersionGLSL.h 4026 4027 HEADERS += $$ANGLE_HEADERS 4028 4029 ANGLE_SOURCES += \ 4030 $$ANGLE_DIR/src/compiler/BuiltInFunctionEmulator.cpp \ 4031 $$ANGLE_DIR/src/compiler/CodeGenGLSL.cpp \ 4032 $$ANGLE_DIR/src/compiler/Compiler.cpp \ 4033 $$ANGLE_DIR/src/compiler/debug.cpp \ 4034 $$ANGLE_DIR/src/compiler/DetectRecursion.cpp \ 4035 $$ANGLE_DIR/src/compiler/ForLoopUnroll.cpp \ 4036 $$ANGLE_DIR/src/compiler/glslang_lex.cpp \ 4037 $$ANGLE_DIR/src/compiler/glslang_tab.cpp \ 4038 $$ANGLE_DIR/src/compiler/InfoSink.cpp \ 4039 $$ANGLE_DIR/src/compiler/Initialize.cpp \ 4040 $$ANGLE_DIR/src/compiler/InitializeDll.cpp \ 4041 $$ANGLE_DIR/src/compiler/Intermediate.cpp \ 4042 $$ANGLE_DIR/src/compiler/intermOut.cpp \ 4043 $$ANGLE_DIR/src/compiler/IntermTraverse.cpp \ 4044 $$ANGLE_DIR/src/compiler/MapLongVariableNames.cpp \ 4045 $$ANGLE_DIR/src/compiler/ossource_posix.cpp \ 4046 $$ANGLE_DIR/src/compiler/OutputESSL.cpp \ 4047 $$ANGLE_DIR/src/compiler/OutputGLSL.cpp \ 4048 $$ANGLE_DIR/src/compiler/OutputGLSLBase.cpp \ 4049 $$ANGLE_DIR/src/compiler/OutputHLSL.cpp \ 4050 $$ANGLE_DIR/src/compiler/parseConst.cpp \ 4051 $$ANGLE_DIR/src/compiler/ParseHelper.cpp \ 4052 $$ANGLE_DIR/src/compiler/PoolAlloc.cpp \ 4053 $$ANGLE_DIR/src/compiler/QualifierAlive.cpp \ 4054 $$ANGLE_DIR/src/compiler/RemoveTree.cpp \ 4055 $$ANGLE_DIR/src/compiler/SearchSymbol.cpp \ 4056 $$ANGLE_DIR/src/compiler/ShaderLang.cpp \ 4057 $$ANGLE_DIR/src/compiler/SymbolTable.cpp \ 4058 $$ANGLE_DIR/src/compiler/TranslatorESSL.cpp \ 4059 $$ANGLE_DIR/src/compiler/TranslatorGLSL.cpp \ 4060 $$ANGLE_DIR/src/compiler/TranslatorHLSL.cpp \ 4061 $$ANGLE_DIR/src/compiler/UnfoldSelect.cpp \ 4062 $$ANGLE_DIR/src/compiler/util.cpp \ 4063 $$ANGLE_DIR/src/compiler/ValidateLimitations.cpp \ 4064 $$ANGLE_DIR/src/compiler/VariableInfo.cpp \ 4065 $$ANGLE_DIR/src/compiler/VersionGLSL.cpp 4066 4067 SOURCES += \ 4068 $$ANGLE_DIR/src/compiler/preprocessor/atom.c \ 4069 $$ANGLE_DIR/src/compiler/preprocessor/cpp.c \ 4070 $$ANGLE_DIR/src/compiler/preprocessor/cppstruct.c \ 4071 $$ANGLE_DIR/src/compiler/preprocessor/memory.c \ 4072 $$ANGLE_DIR/src/compiler/preprocessor/scanner.c \ 4073 $$ANGLE_DIR/src/compiler/preprocessor/symbols.c \ 4074 $$ANGLE_DIR/src/compiler/preprocessor/tokens.c 4075 4076 *g++* { 4077 ANGLE_CFLAGS += -Wno-unused-variable 4078 ANGLE_CFLAGS += -Wno-missing-noreturn 4079 ANGLE_CFLAGS += -Wno-unused-function 4080 ANGLE_CFLAGS += -Wno-reorder 4081 ANGLE_CFLAGS += -Wno-error 4082 4083 angle_cxx.commands = $$QMAKE_CXX -c $(CXXFLAGS) $$ANGLE_CFLAGS $(INCPATH) ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT} 4084 angle_cxx.output = ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_BASE}$$QMAKE_EXT_OBJ 4085 anglc_cxx.dependency_type = TYPE_C 4086 angle_cxx.depends = $$ANGLE_HEADERS 4087 angle_cxx.input = ANGLE_SOURCES 4088 QMAKE_EXTRA_COMPILERS += angle_cxx 4089 } else { 4090 SOURCES += $$ANGLE_SOURCES 4091 } 3961 platform/graphics/opengl/Extensions3DOpenGL.cpp \ 3962 platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp \ 3963 platform/graphics/qt/GraphicsContext3DQt.cpp \ 3964 platform/graphics/texmap/TextureMapperGL.cpp \ 3965 platform/graphics/texmap/TextureMapperShaderManager.cpp 3966 3967 contains(QT_CONFIG, opengles2) { 3968 SOURCES += platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp 3969 } else { 3970 SOURCES += platform/graphics/opengl/GraphicsContext3DOpenGL.cpp 4092 3971 } 4093 3972 3973 ANGLE_DIR = $$replace(PWD, "WebCore", "ThirdParty/ANGLE") 3974 3975 INCLUDEPATH += $$ANGLE_DIR/src $$ANGLE_DIR/include 3976 3977 ANGLE_HEADERS += \ 3978 $$ANGLE_DIR/src/compiler/BaseTypes.h \ 3979 $$ANGLE_DIR/src/compiler/BuiltInFunctionEmulator.h \ 3980 $$ANGLE_DIR/src/compiler/Common.h \ 3981 $$ANGLE_DIR/src/compiler/ConstantUnion.h \ 3982 $$ANGLE_DIR/src/compiler/debug.h \ 3983 $$ANGLE_DIR/src/compiler/DetectRecursion.h \ 3984 $$ANGLE_DIR/src/compiler/ExtensionBehavior.h \ 3985 $$ANGLE_DIR/src/compiler/ForLoopUnroll.h \ 3986 $$ANGLE_DIR/src/compiler/glslang.h \ 3987 $$ANGLE_DIR/src/compiler/glslang_tab.h \ 3988 $$ANGLE_DIR/src/compiler/InfoSink.h \ 3989 $$ANGLE_DIR/src/compiler/InitializeDll.h \ 3990 $$ANGLE_DIR/src/compiler/InitializeGlobals.h \ 3991 $$ANGLE_DIR/src/compiler/Initialize.h \ 3992 $$ANGLE_DIR/src/compiler/InitializeParseContext.h \ 3993 $$ANGLE_DIR/src/compiler/intermediate.h \ 3994 $$ANGLE_DIR/src/compiler/localintermediate.h \ 3995 $$ANGLE_DIR/src/compiler/MMap.h \ 3996 $$ANGLE_DIR/src/compiler/MapLongVariableNames.h \ 3997 $$ANGLE_DIR/src/compiler/osinclude.h \ 3998 $$ANGLE_DIR/src/compiler/preprocessor/atom.h \ 3999 $$ANGLE_DIR/src/compiler/preprocessor/compile.h \ 4000 $$ANGLE_DIR/src/compiler/preprocessor/cpp.h \ 4001 $$ANGLE_DIR/src/compiler/preprocessor/length_limits.h \ 4002 $$ANGLE_DIR/src/compiler/preprocessor/memory.h \ 4003 $$ANGLE_DIR/src/compiler/preprocessor/parser.h \ 4004 $$ANGLE_DIR/src/compiler/preprocessor/preprocess.h \ 4005 $$ANGLE_DIR/src/compiler/preprocessor/scanner.h \ 4006 $$ANGLE_DIR/src/compiler/preprocessor/slglobals.h \ 4007 $$ANGLE_DIR/src/compiler/preprocessor/symbols.h \ 4008 $$ANGLE_DIR/src/compiler/preprocessor/tokens.h \ 4009 $$ANGLE_DIR/src/compiler/OutputESSL.h \ 4010 $$ANGLE_DIR/src/compiler/OutputGLSL.h \ 4011 $$ANGLE_DIR/src/compiler/OutputGLSLBase.h \ 4012 $$ANGLE_DIR/src/compiler/OutputHLSL.h \ 4013 $$ANGLE_DIR/src/compiler/ParseHelper.h \ 4014 $$ANGLE_DIR/src/compiler/PoolAlloc.h \ 4015 $$ANGLE_DIR/src/compiler/QualifierAlive.h \ 4016 $$ANGLE_DIR/src/compiler/RemoveTree.h \ 4017 $$ANGLE_DIR/src/compiler/SearchSymbol.h \ 4018 $$ANGLE_DIR/src/compiler/ShHandle.h \ 4019 $$ANGLE_DIR/src/compiler/SymbolTable.h \ 4020 $$ANGLE_DIR/src/compiler/TranslatorESSL.h \ 4021 $$ANGLE_DIR/src/compiler/TranslatorGLSL.h \ 4022 $$ANGLE_DIR/src/compiler/TranslatorHLSL.h \ 4023 $$ANGLE_DIR/src/compiler/Types.h \ 4024 $$ANGLE_DIR/src/compiler/UnfoldSelect.h \ 4025 $$ANGLE_DIR/src/compiler/util.h \ 4026 $$ANGLE_DIR/src/compiler/ValidateLimitations.h \ 4027 $$ANGLE_DIR/src/compiler/VariableInfo.h \ 4028 $$ANGLE_DIR/src/compiler/VersionGLSL.h 4029 4030 HEADERS += $$ANGLE_HEADERS 4031 4032 ANGLE_SOURCES += \ 4033 $$ANGLE_DIR/src/compiler/BuiltInFunctionEmulator.cpp \ 4034 $$ANGLE_DIR/src/compiler/CodeGenGLSL.cpp \ 4035 $$ANGLE_DIR/src/compiler/Compiler.cpp \ 4036 $$ANGLE_DIR/src/compiler/debug.cpp \ 4037 $$ANGLE_DIR/src/compiler/DetectRecursion.cpp \ 4038 $$ANGLE_DIR/src/compiler/ForLoopUnroll.cpp \ 4039 $$ANGLE_DIR/src/compiler/glslang_lex.cpp \ 4040 $$ANGLE_DIR/src/compiler/glslang_tab.cpp \ 4041 $$ANGLE_DIR/src/compiler/InfoSink.cpp \ 4042 $$ANGLE_DIR/src/compiler/Initialize.cpp \ 4043 $$ANGLE_DIR/src/compiler/InitializeDll.cpp \ 4044 $$ANGLE_DIR/src/compiler/Intermediate.cpp \ 4045 $$ANGLE_DIR/src/compiler/intermOut.cpp \ 4046 $$ANGLE_DIR/src/compiler/IntermTraverse.cpp \ 4047 $$ANGLE_DIR/src/compiler/MapLongVariableNames.cpp \ 4048 $$ANGLE_DIR/src/compiler/ossource_posix.cpp \ 4049 $$ANGLE_DIR/src/compiler/OutputESSL.cpp \ 4050 $$ANGLE_DIR/src/compiler/OutputGLSL.cpp \ 4051 $$ANGLE_DIR/src/compiler/OutputGLSLBase.cpp \ 4052 $$ANGLE_DIR/src/compiler/OutputHLSL.cpp \ 4053 $$ANGLE_DIR/src/compiler/parseConst.cpp \ 4054 $$ANGLE_DIR/src/compiler/ParseHelper.cpp \ 4055 $$ANGLE_DIR/src/compiler/PoolAlloc.cpp \ 4056 $$ANGLE_DIR/src/compiler/QualifierAlive.cpp \ 4057 $$ANGLE_DIR/src/compiler/RemoveTree.cpp \ 4058 $$ANGLE_DIR/src/compiler/SearchSymbol.cpp \ 4059 $$ANGLE_DIR/src/compiler/ShaderLang.cpp \ 4060 $$ANGLE_DIR/src/compiler/SymbolTable.cpp \ 4061 $$ANGLE_DIR/src/compiler/TranslatorESSL.cpp \ 4062 $$ANGLE_DIR/src/compiler/TranslatorGLSL.cpp \ 4063 $$ANGLE_DIR/src/compiler/TranslatorHLSL.cpp \ 4064 $$ANGLE_DIR/src/compiler/UnfoldSelect.cpp \ 4065 $$ANGLE_DIR/src/compiler/util.cpp \ 4066 $$ANGLE_DIR/src/compiler/ValidateLimitations.cpp \ 4067 $$ANGLE_DIR/src/compiler/VariableInfo.cpp \ 4068 $$ANGLE_DIR/src/compiler/VersionGLSL.cpp 4069 4070 SOURCES += \ 4071 $$ANGLE_DIR/src/compiler/preprocessor/atom.c \ 4072 $$ANGLE_DIR/src/compiler/preprocessor/cpp.c \ 4073 $$ANGLE_DIR/src/compiler/preprocessor/cppstruct.c \ 4074 $$ANGLE_DIR/src/compiler/preprocessor/memory.c \ 4075 $$ANGLE_DIR/src/compiler/preprocessor/scanner.c \ 4076 $$ANGLE_DIR/src/compiler/preprocessor/symbols.c \ 4077 $$ANGLE_DIR/src/compiler/preprocessor/tokens.c 4078 4079 *g++* { 4080 ANGLE_CFLAGS += -Wno-unused-variable 4081 ANGLE_CFLAGS += -Wno-missing-noreturn 4082 ANGLE_CFLAGS += -Wno-unused-function 4083 ANGLE_CFLAGS += -Wno-reorder 4084 ANGLE_CFLAGS += -Wno-error 4085 4086 angle_cxx.commands = $$QMAKE_CXX -c $(CXXFLAGS) $$ANGLE_CFLAGS $(INCPATH) ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT} 4087 angle_cxx.output = ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_BASE}$$QMAKE_EXT_OBJ 4088 anglc_cxx.dependency_type = TYPE_C 4089 angle_cxx.depends = $$ANGLE_HEADERS 4090 angle_cxx.input = ANGLE_SOURCES 4091 QMAKE_EXTRA_COMPILERS += angle_cxx 4092 } else { 4093 SOURCES += $$ANGLE_SOURCES 4094 } 4095 4094 4096 CONFIG += opengl-shims 4095 } 4097 INCLUDEPATH += platform/graphics/gpu 4098 } 4099 4096 4100 4097 4101 contains(DEFINES, ENABLE_MHTML=1) { … … 4149 4153 } 4150 4154 4151 contains(DEFINES, WTF_USE_TEXTURE_MAPPER_GL=1) {4152 HEADERS += \4153 platform/graphics/texmap/TextureMapperGL.h \4154 platform/graphics/texmap/TextureMapperShaderManager.h4155 4156 SOURCES += \4157 platform/graphics/texmap/TextureMapperGL.cpp \4158 platform/graphics/texmap/TextureMapperShaderManager.cpp4159 4160 CONFIG += opengl-shims4161 }4162 4163 4155 contains(CONFIG, opengl-shims) { 4164 4156 HEADERS += platform/graphics/OpenGLShims.h -
trunk/Source/WebCore/WebCore.pri
r121958 r122175 7 7 8 8 SOURCE_DIR = $${ROOT_WEBKIT_DIR}/Source/WebCore 9 10 # We enable TextureMapper by default; remove this line to enable GraphicsLayerQt.11 CONFIG += texmap12 9 13 10 QT *= network sql … … 204 201 } 205 202 206 contains(DEFINES, ENABLE_WEBGL=1) { 207 !contains(QT_CONFIG, opengl) { 208 error( "This configuration needs an OpenGL enabled Qt. Your Qt is missing OpenGL.") 209 } 210 } 211 212 contains(CONFIG, texmap) { 213 DEFINES += WTF_USE_TEXTURE_MAPPER=1 214 # TextureMapperGL requires stuff from GraphicsContext3D, hence the WebGL 215 # dependency. 216 !win32-*:contains(QT_CONFIG, opengl):contains(DEFINES, ENABLE_WEBGL=1) { 217 DEFINES += WTF_USE_TEXTURE_MAPPER_GL=1 218 contains(QT_CONFIG, opengles2): LIBS += -lEGL 219 } 203 contains(DEFINES, WTF_USE_3D_GRAPHICS=1) { 204 contains(QT_CONFIG, opengles2): LIBS += -lEGL 220 205 mac: LIBS += -framework IOSurface -framework CoreFoundation 221 } 222 223 contains(DEFINES, WTF_USE_TEXTURE_MAPPER_GL=1)|contains(DEFINES, ENABLE_WEBGL=1) { 224 # Only Qt 4 needs the opengl module, for Qt 5 everything we need is part of QtGui. 225 haveQt(4): QT *= opengl 206 # Only WebKit1 needs the opengl module, so it's optional for Qt5. 207 haveQt(4)|contains(QT_CONFIG, opengl): QT *= opengl 226 208 } 227 209 -
trunk/Source/WebCore/platform/graphics/ANGLEWebKitBridge.cpp
r121259 r122175 26 26 #include "config.h" 27 27 28 #if ENABLE(WEBGL)28 #if USE(3D_GRAPHICS) 29 29 30 30 #include "ANGLEWebKitBridge.h" … … 118 118 } 119 119 120 #endif // ENABLE(WEBGL)120 #endif // USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/GraphicsContext3D.cpp
r120668 r122175 27 27 #include "config.h" 28 28 29 #if ENABLE(WEBGL)29 #if USE(3D_GRAPHICS) 30 30 31 31 #include "GraphicsContext3D.h" … … 1834 1834 } // namespace WebCore 1835 1835 1836 #endif // ENABLE(WEBGL)1836 #endif // USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/OpenGLShims.cpp
r119098 r122175 18 18 19 19 #include "config.h" 20 #if ENABLE(WEBGL) || defined(QT_OPENGL_SHIMS)20 #if USE(3D_GRAPHICS) || defined(QT_OPENGL_SHIMS) 21 21 22 22 #define DISABLE_SHIMS … … 228 228 } // namespace WebCore 229 229 230 #endif // ENABLE(WEBGL)230 #endif // USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp
r113486 r122175 27 27 #include "config.h" 28 28 29 #if ENABLE(WEBGL)29 #if USE(3D_GRAPHICS) 30 30 31 31 #include "GraphicsContext3D.h" … … 210 210 } // namespace WebCore 211 211 212 #endif // ENABLE(WEBGL)213 212 #endif // USE(3D_GRAPHICS) 213 -
trunk/Source/WebCore/platform/graphics/cairo/DrawingBufferCairo.cpp
r117379 r122175 26 26 #include "config.h" 27 27 28 #if ENABLE(ACCELERATED_2D_CANVAS) || ENABLE(WEBGL)28 #if ENABLE(ACCELERATED_2D_CANVAS) || USE(3D_GRAPHICS) 29 29 30 30 #include "DrawingBuffer.h" -
trunk/Source/WebCore/platform/graphics/cairo/GLContext.h
r120262 r122175 43 43 virtual IntSize defaultFrameBufferSize() = 0; 44 44 45 #if ENABLE(WEBGL)45 #if USE(3D_GRAPHICS) 46 46 virtual PlatformGraphicsContext3D platformContext() = 0; 47 47 #endif -
trunk/Source/WebCore/platform/graphics/cairo/GraphicsContext3DCairo.cpp
r122156 r122175 29 29 #include "GraphicsContext3D.h" 30 30 31 #if ENABLE(WEBGL)31 #if USE(3D_GRAPHICS) 32 32 33 33 #include "Extensions3DOpenGL.h" … … 259 259 } // namespace WebCore 260 260 261 #endif // ENABLE(WEBGL)261 #endif // USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/cairo/GraphicsContext3DPrivate.cpp
r120359 r122175 21 21 #include "GraphicsContext3DPrivate.h" 22 22 23 #if ENABLE(WEBGL)23 #if USE(3D_GRAPHICS) 24 24 25 25 #include "HostWindow.h" … … 130 130 } // namespace WebCore 131 131 132 #endif // ENABLE_WEBGL132 #endif // USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/cg/GraphicsContext3DCG.cpp
r117191 r122175 27 27 #include "config.h" 28 28 29 #if ENABLE(WEBGL)29 #if USE(3D_GRAPHICS) 30 30 31 31 #include "GraphicsContext3D.h" … … 284 284 } // namespace WebCore 285 285 286 #endif // ENABLE(WEBGL)286 #endif // USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/clutter/DrawingBufferClutter.cpp
r117379 r122175 32 32 #include "config.h" 33 33 34 #if ENABLE(ACCELERATED_2D_CANVAS) || ENABLE(WEBGL)34 #if ENABLE(ACCELERATED_2D_CANVAS) || USE(3D_GRAPHICS) 35 35 36 36 #include "DrawingBuffer.h" -
trunk/Source/WebCore/platform/graphics/clutter/GraphicsContext3DClutter.cpp
r122156 r122175 30 30 #include "GraphicsContext3D.h" 31 31 32 #if ENABLE(WEBGL)32 #if USE(3D_GRAPHICS) 33 33 34 34 #include "Extensions3DOpenGL.h" … … 101 101 } // namespace WebCore 102 102 103 #endif // ENABLE(WEBGL)103 #endif // USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/clutter/GraphicsContext3DPrivate.cpp
r112141 r122175 21 21 #include "GraphicsContext3DPrivate.h" 22 22 23 #if ENABLE(WEBGL)23 #if USE(3D_GRAPHICS) 24 24 25 25 #include "HostWindow.h" … … 62 62 } // namespace WebCore 63 63 64 #endif // ENABLE_WEBGL64 #endif // USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/efl/GraphicsContext3DEfl.cpp
r117379 r122175 20 20 #include "config.h" 21 21 22 #if ENABLE(WEBGL) || USE(ACCELERATED_COMPOSITING)22 #if USE(3D_GRAPHICS) || USE(ACCELERATED_COMPOSITING) 23 23 24 24 #include "GraphicsContext3DPrivate.h" … … 858 858 } // namespace WebCore 859 859 860 #endif // ENABLE(WEBGL)860 #endif // USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp
r111673 r122175 20 20 #include "config.h" 21 21 22 #if ENABLE(WEBGL) || USE(ACCELERATED_COMPOSITING)22 #if USE(3D_GRAPHICS) || USE(ACCELERATED_COMPOSITING) 23 23 24 24 #include "GraphicsContext3DPrivate.h" … … 1122 1122 } // namespace WebCore 1123 1123 1124 #endif // ENABLE(WEBGL) || USE(ACCELERATED_COMPOSITING)1124 #endif // USE(3D_GRAPHICS) || USE(ACCELERATED_COMPOSITING) -
trunk/Source/WebCore/platform/graphics/filters/CustomFilterCompiledProgram.cpp
r120893 r122175 30 30 #include "config.h" 31 31 32 #if ENABLE(CSS_SHADERS) && ENABLE(WEBGL)32 #if ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) 33 33 #include "CustomFilterCompiledProgram.h" 34 34 … … 177 177 178 178 } // namespace WebCore 179 #endif // ENABLE(CSS_SHADERS) && ENABLE(WEBGL)179 #endif // ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/filters/CustomFilterCompiledProgram.h
r120893 r122175 31 31 #define CustomFilterCompiledProgram_h 32 32 33 #if ENABLE(CSS_SHADERS) && ENABLE(WEBGL)33 #if ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) 34 34 35 35 #include "GraphicsTypes3D.h" … … 105 105 } 106 106 107 #endif // ENABLE(CSS_SHADERS) && ENABLE(WEBGL)107 #endif // ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) 108 108 109 109 #endif -
trunk/Source/WebCore/platform/graphics/filters/CustomFilterGlobalContext.cpp
r120757 r122175 30 30 #include "config.h" 31 31 32 #if ENABLE(CSS_SHADERS) && ENABLE(WEBGL)32 #if ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) 33 33 #include "CustomFilterGlobalContext.h" 34 34 … … 60 60 } // namespace WebCore 61 61 62 #endif // ENABLE(CSS_SHADERS) && ENABLE(WEBGL)62 #endif // ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/filters/CustomFilterGlobalContext.h
r120757 r122175 31 31 #define CustomFilterGlobalContext_h 32 32 33 #if ENABLE(CSS_SHADERS) && ENABLE(WEBGL)33 #if ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) 34 34 #include <wtf/RefPtr.h> 35 35 … … 54 54 } // namespace WebCore 55 55 56 #endif // ENABLE(CSS_SHADERS) && ENABLE(WEBGL)56 #endif // ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) 57 57 58 58 #endif // CustomFilterGlobalContext_h -
trunk/Source/WebCore/platform/graphics/filters/CustomFilterMesh.cpp
r108952 r122175 30 30 #include "config.h" 31 31 32 #if ENABLE(CSS_SHADERS) && ENABLE(WEBGL)32 #if ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) 33 33 #include "CustomFilterMesh.h" 34 34 #include "GraphicsContext3D.h" … … 263 263 } // namespace WebCore 264 264 265 #endif // ENABLE(CSS_SHADERS) && ENABLE(WEBGL)266 265 #endif // ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) 266 -
trunk/Source/WebCore/platform/graphics/filters/CustomFilterMesh.h
r108952 r122175 31 31 #define CustomFilterMesh_h 32 32 33 #if ENABLE(CSS_SHADERS) && ENABLE(WEBGL)33 #if ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) 34 34 35 35 #include "CustomFilterOperation.h" … … 76 76 } // namespace WebCore 77 77 78 #endif // ENABLE(CSS_SHADERS) && ENABLE(WEBGL)78 #endif // ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) 79 79 80 80 #endif // CustomFilterMesh_h -
trunk/Source/WebCore/platform/graphics/filters/CustomFilterProgram.cpp
r120893 r122175 36 36 #include "CustomFilterProgramClient.h" 37 37 38 #if ENABLE(WEBGL)38 #if USE(3D_GRAPHICS) 39 39 #include "GraphicsContext3D.h" 40 40 #endif … … 81 81 } 82 82 83 #if ENABLE(WEBGL)83 #if USE(3D_GRAPHICS) 84 84 PassRefPtr<CustomFilterCompiledProgram> CustomFilterProgram::compileProgramWithContext(GraphicsContext3D* context) 85 85 { -
trunk/Source/WebCore/platform/graphics/filters/CustomFilterProgram.h
r120893 r122175 54 54 void removeClient(CustomFilterProgramClient*); 55 55 56 #if ENABLE(WEBGL)56 #if USE(3D_GRAPHICS) 57 57 PassRefPtr<CustomFilterCompiledProgram> compileProgramWithContext(GraphicsContext3D*); 58 58 #endif -
trunk/Source/WebCore/platform/graphics/filters/FECustomFilter.cpp
r120935 r122175 30 30 #include "config.h" 31 31 32 #if ENABLE(CSS_SHADERS) && ENABLE(WEBGL)32 #if ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) 33 33 #include "FECustomFilter.h" 34 34 … … 304 304 } // namespace WebCore 305 305 306 #endif // ENABLE(CSS_SHADERS) && ENABLE(WEBGL)306 #endif // ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/filters/FECustomFilter.h
r120935 r122175 31 31 #define FECustomFilter_h 32 32 33 #if ENABLE(CSS_SHADERS) && ENABLE(WEBGL)33 #if ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) 34 34 35 35 #include "CustomFilterOperation.h" … … 104 104 } // namespace WebCore 105 105 106 #endif // ENABLE(CSS_SHADERS) && ENABLE(WEBGL)106 #endif // ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) 107 107 108 108 #endif // FECustomFilter_h -
trunk/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp
r120673 r122175 312 312 } 313 313 314 #if ENABLE(WEBGL)314 #if USE(3D_GRAPHICS) 315 315 PlatformGraphicsContext3D GLContextGLX::platformContext() 316 316 { … … 321 321 } // namespace WebCore 322 322 323 #endif // ENABLE(WEBGL) || && USE(TEXTURE_MAPPER_GL)323 #endif // USE(GLX) -
trunk/Source/WebCore/platform/graphics/glx/GLContextGLX.h
r120262 r122175 49 49 virtual IntSize defaultFrameBufferSize(); 50 50 51 #if ENABLE(WEBGL)51 #if USE(3D_GRAPHICS) 52 52 virtual PlatformGraphicsContext3D platformContext(); 53 53 #endif -
trunk/Source/WebCore/platform/graphics/gpu/DrawingBuffer.cpp
r114961 r122175 31 31 #include "config.h" 32 32 33 #if ENABLE(ACCELERATED_2D_CANVAS) || ENABLE(WEBGL)33 #if ENABLE(ACCELERATED_2D_CANVAS) || USE(3D_GRAPHICS) 34 34 35 35 #include "DrawingBuffer.h" -
trunk/Source/WebCore/platform/graphics/gpu/mac/DrawingBufferMac.mm
r114961 r122175 26 26 #include "config.h" 27 27 28 #if ENABLE(ACCELERATED_2D_CANVAS) || ENABLE(WEBGL)28 #if ENABLE(ACCELERATED_2D_CANVAS) || USE(3D_GRAPHICS) 29 29 30 30 #include "DrawingBuffer.h" -
trunk/Source/WebCore/platform/graphics/gpu/qt/DrawingBufferQt.cpp
r117379 r122175 26 26 #include "config.h" 27 27 28 #if ENABLE(ACCELERATED_2D_CANVAS) || ENABLE(WEBGL)28 #if USE(3D_GRAPHICS) 29 29 30 30 #include "DrawingBuffer.h" -
trunk/Source/WebCore/platform/graphics/mac/GraphicsContext3DMac.mm
r122156 r122175 26 26 #include "config.h" 27 27 28 #if ENABLE(WEBGL)28 #if USE(3D_GRAPHICS) 29 29 30 30 #include "GraphicsContext3D.h" … … 285 285 } 286 286 287 #endif // ENABLE(WEBGL)287 #endif // USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp
r122156 r122175 26 26 #include "config.h" 27 27 28 #if ENABLE(WEBGL)28 #if USE(3D_GRAPHICS) 29 29 30 30 #include "Extensions3DOpenGL.h" … … 210 210 } // namespace WebCore 211 211 212 #endif // ENABLE(WEBGL)212 #endif // USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
r122156 r122175 26 26 #include "config.h" 27 27 28 #if ENABLE(WEBGL)28 #if USE(3D_GRAPHICS) 29 29 30 30 #include "GraphicsContext3D.h" … … 259 259 } 260 260 261 #endif // ENABLE(WEBGL)261 #endif // USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
r122156 r122175 27 27 #include "config.h" 28 28 29 #if ENABLE(WEBGL)29 #if USE(3D_GRAPHICS) 30 30 31 31 #include "GraphicsContext3D.h" … … 1396 1396 } 1397 1397 1398 #endif // ENABLE(WEBGL)1398 #endif // USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp
r122156 r122175 27 27 #include "config.h" 28 28 29 #if ENABLE(WEBGL)29 #if USE(3D_GRAPHICS) 30 30 31 31 #include "GraphicsContext3D.h" … … 171 171 } // namespace WebCore 172 172 173 #endif // ENABLE(WEBGL)173 #endif // USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp
r122156 r122175 18 18 19 19 #include "config.h" 20 21 20 #include "GraphicsContext3D.h" 22 21 23 #include "WebGLObject.h"24 #include "CanvasRenderingContext.h"25 22 #include "Extensions3DOpenGL.h" 26 23 #include "GraphicsContext.h" 27 24 #include "GraphicsSurface.h" 28 #include "HTMLCanvasElement.h"29 25 #include "HostWindow.h" 30 26 #include "ImageBuffer.h" … … 41 37 #include <wtf/text/CString.h> 42 38 43 #if USE( ACCELERATED_COMPOSITING) && USE(TEXTURE_MAPPER_GL)39 #if USE(TEXTURE_MAPPER_GL) 44 40 #include <texmap/TextureMapperGL.h> 45 41 #endif 46 42 47 #if ENABLE(WEBGL)43 #if USE(3D_GRAPHICS) 48 44 49 45 namespace WebCore { … … 543 539 } 544 540 545 #endif // ENABLE(WEBGL)541 #endif // USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/skia/GraphicsContext3DSkia.cpp
r117191 r122175 27 27 #include "config.h" 28 28 29 #if ENABLE(WEBGL)29 #if USE(3D_GRAPHICS) 30 30 31 31 #include "GraphicsContext3D.h" … … 93 93 } // namespace WebCore 94 94 95 #endif // ENABLE(WEBGL)95 #endif // USE(3D_GRAPHICS) -
trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h
r120532 r122175 26 26 #include "Image.h" 27 27 #include "TextureMapperLayer.h" 28 29 #if ENABLE(WEBGL)30 #include "GraphicsContext3D.h"31 #endif32 28 33 29 namespace WebCore { -
trunk/Source/WebCore/platform/qt/QWebPageClient.h
r119098 r122175 35 35 #endif 36 36 37 #if ENABLE(WEBGL)37 #if USE(3D_GRAPHICS) 38 38 #include <GraphicsContext3D.h> 39 39 #endif … … 107 107 virtual void setWidgetVisible(WebCore::Widget*, bool visible) = 0; 108 108 109 #if ENABLE(WEBGL)109 #if USE(3D_GRAPHICS) 110 110 virtual void createPlatformGraphicsContext3D(PlatformGraphicsContext3D*, 111 111 PlatformGraphicsSurface3D*) = 0; -
trunk/Source/WebKit/qt/ChangeLog
r121967 r122175 1 2012-07-09 No'am Rosenthal <noam.rosenthal@nokia.com> 2 3 Shared code that is guarded with ENABLE(WEBGL) should be guarded with USE() 4 https://bugs.webkit.org/show_bug.cgi?id=90506 5 6 Reviewed by Martin Robinson. 7 8 Updated necessary parts of PageClientQt to be guarded with USE(3D_GRAPHICS) instead of 9 ENABLE(WEBGL). The WebKit1 glue to WebGL still requires the Qt OpenGL module, so it's 10 disable if QT_OPENGL_LIB is not defined. 11 12 * WebCoreSupport/PageClientQt.cpp: 13 (createPlatformGraphicsContext3DFromWidget): 14 (WebCore): 15 * WebCoreSupport/PageClientQt.h: 16 (PageClientQWidget): 17 (PageClientQGraphicsWidget): 18 1 19 2012-07-06 Csaba Osztrogonác <ossy@webkit.org> 2 20 -
trunk/Source/WebKit/qt/WebCoreSupport/PageClientQt.cpp
r121710 r122175 24 24 #include <QGraphicsScene> 25 25 #include <QGraphicsView> 26 26 27 #if defined(Q_WS_X11) 27 28 #include <QX11Info> 28 29 #endif 29 30 30 #if ENABLE(WEBGL)31 #ifdef QT_OPENGL_LIB 31 32 #include <QGLWidget> 32 33 #endif 34 35 #if USE(3D_GRAPHICS) 33 36 #if HAVE(QT5) 34 37 #include <QWindow> … … 38 41 PlatformGraphicsSurface3D* surface) 39 42 { 43 #ifdef QT_OPENGL_LIB 40 44 *context = 0; 41 45 *surface = 0; … … 62 66 glWidget = 0; 63 67 } 68 #endif 64 69 } 65 70 #endif … … 238 243 } 239 244 240 #if ENABLE(WEBGL)245 #if USE(3D_GRAPHICS) 241 246 void PageClientQWidget::createPlatformGraphicsContext3D(PlatformGraphicsContext3D* context, 242 247 PlatformGraphicsSurface3D* surface) … … 427 432 #endif // QT_NO_GRAPHICSVIEW 428 433 429 #if ENABLE(WEBGL)434 #if USE(3D_GRAPHICS) 430 435 void PageClientQGraphicsWidget::createPlatformGraphicsContext3D(PlatformGraphicsContext3D* context, 431 436 PlatformGraphicsSurface3D* surface) -
trunk/Source/WebKit/qt/WebCoreSupport/PageClientQt.h
r121710 r122175 100 100 virtual void setWidgetVisible(Widget*, bool visible); 101 101 102 #if ENABLE(WEBGL)102 #if USE(3D_GRAPHICS) 103 103 virtual void createPlatformGraphicsContext3D(PlatformGraphicsContext3D*, 104 104 PlatformGraphicsSurface3D*); … … 208 208 virtual void setWidgetVisible(Widget*, bool); 209 209 210 #if ENABLE(WEBGL)210 #if USE(3D_GRAPHICS) 211 211 virtual void createPlatformGraphicsContext3D(PlatformGraphicsContext3D*, 212 212 PlatformGraphicsSurface3D*); -
trunk/Tools/ChangeLog
r122174 r122175 1 2012-07-09 No'am Rosenthal <noam.rosenthal@nokia.com> 2 3 Shared code that is guarded with ENABLE(WEBGL) should be guarded with USE() 4 https://bugs.webkit.org/show_bug.cgi?id=90506 5 6 Reviewed by Martin Robinson. 7 8 Always enable the WTF_USE_3D_GRAPHICS flag in features.prf if we're compiling with Qt5 9 or if the OpenGL module is enabled. 10 11 * qmake/mkspecs/features/features.prf: 12 1 13 2012-07-09 Yongjun Zhang <yongjun_zhang@apple.com> 2 14 -
trunk/Tools/qmake/mkspecs/features/features.prf
r121963 r122175 213 213 contains(DEFINES, $$opposite): DEFINES -= $$define 214 214 } 215 216 # Enable the USE(3D_GRAPHICS) flag for Qt5 or when QtOpenGL is enabled. 217 !contains(DEFINES, WTF_USE_3D_GRAPHICS=.) { 218 haveQt(5)|contains(QT_CONFIG, opengl): DEFINES += WTF_USE_3D_GRAPHICS=1 219 } 220 221 haveQt(4):contains(DEFINES, ENABLE_WEBGL=1):contains(DEFINES, WTF_USE_3D_GRAPHICS=0) { 222 error("WebGL requires Qt to be configured with OpenGL. Please reconfigure Qt with OpenGL, or build WebKit without WebGL.") 223 }
Note: See TracChangeset
for help on using the changeset viewer.