Changeset 153843 in webkit
- Timestamp:
- Aug 8, 2013, 1:19:27 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r153838 r153843 1 2013-08-08 Alex Christensen <achristensen@apple.com> 2 3 Work towards WebGL on AppleWin port. 4 https://bugs.webkit.org/show_bug.cgi?id=119562 5 6 Reviewed by Brent Fulgham. 7 8 * WebCore.vcxproj/WebCore.vcxproj: 9 Build GLContext.cpp and GraphicsContext3DPrivate.cpp on AppleWin port. 10 * WebCore.vcxproj/WebCore.vcxproj.filters: 11 Moved GLContext and GraphicsContext3DPrivate from Cairo filter to graphics. 12 * platform/graphics/GraphicsContext3D.h: 13 Added m_webGLLayer for AppleWin port. 14 * platform/graphics/GraphicsContext3DPrivate.cpp: 15 Protected inclusion of PlatformContextCairo.h in USE(CAIRO) macro for non-cairo ports. 16 * platform/graphics/win/GraphicsContext3DWin.cpp: 17 Removed stub GraphicsContext3DPrivate implementation in favor of GraphicsContext3DPrivate.cpp. 18 (WebCore::GraphicsContext3D::GraphicsContext3D): 19 Added GraphicsContext3DPrivate and PlatformCALayer initialization. 20 (WebCore::GraphicsContext3D::makeContextCurrent): 21 (WebCore::GraphicsContext3D::platformGraphicsContext3D): 22 Added implementation based on Cairo ports' to be refactored soon. 23 (WebCore::GraphicsContext3D::platformLayer): 24 Return PlatformCALayer's PlatformLayer instead of 0. 25 1 26 2013-08-08 Jer Noble <jer.noble@apple.com> 2 27 -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
r153785 r153843 7341 7341 <ClCompile Include="..\platform\graphics\avfoundation\cf\InbandTextTrackPrivateLegacyAVCF.cpp" /> 7342 7342 <ClCompile Include="..\platform\graphics\avfoundation\InbandTextTrackPrivateAVF.cpp" /> 7343 <ClCompile Include="..\platform\graphics\GLContext.cpp"> 7344 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> 7345 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> 7346 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild> 7347 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild> 7348 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild> 7349 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> 7350 </ClCompile> 7343 <ClCompile Include="..\platform\graphics\GLContext.cpp" /> 7351 7344 <ClCompile Include="..\platform\graphics\cairo\GraphicsContext3DCairo.cpp"> 7352 7345 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> … … 7357 7350 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> 7358 7351 </ClCompile> 7359 <ClCompile Include="..\platform\graphics\GraphicsContext3DPrivate.cpp"> 7360 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> 7361 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> 7362 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild> 7363 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild> 7364 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild> 7365 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> 7366 </ClCompile> 7352 <ClCompile Include="..\platform\graphics\GraphicsContext3DPrivate.cpp" /> 7367 7353 <ClCompile Include="..\platform\graphics\ca\win\PlatformCAFiltersWin.cpp" /> 7368 7354 <ClCompile Include="..\platform\graphics\cg\GraphicsContext3DCG.cpp"> -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters
r153772 r153843 7031 7031 <Filter>platform\graphics\cairo</Filter> 7032 7032 </ClCompile> 7033 <ClCompile Include="..\platform\graphics\GraphicsContext3DPrivate.cpp">7034 <Filter>platform\graphics\cairo</Filter>7035 </ClCompile>7036 7033 <ClCompile Include="..\html\canvas\CanvasContextAttributes.cpp"> 7037 7034 <Filter>html\canvas</Filter> 7038 </ClCompile>7039 <ClCompile Include="..\platform\graphics\GLContext.cpp">7040 <Filter>platform\graphics\cairo</Filter>7041 7035 </ClCompile> 7042 7036 <ClCompile Include="..\platform\graphics\opengl\GraphicsContext3DOpenGLES.cpp"> … … 7058 7052 <ClCompile Include="..\platform\graphics\win\GraphicsContext3DWin.cpp"> 7059 7053 <Filter>platform\graphics\win</Filter> 7054 </ClCompile> 7055 <ClCompile Include="..\platform\graphics\GraphicsContext3DPrivate.cpp"> 7056 <Filter>platform\graphics</Filter> 7057 </ClCompile> 7058 <ClCompile Include="..\platform\graphics\GLContext.cpp"> 7059 <Filter>platform\graphics</Filter> 7060 7060 </ClCompile> 7061 7061 </ItemGroup> … … 14779 14779 <Filter>page</Filter> 14780 14780 </ClInclude> 14781 <ClInclude Include="..\platform\graphics\GraphicsContext3DPrivate.h">14782 <Filter>platform\graphics\cairo</Filter>14783 </ClInclude>14784 14781 <ClInclude Include="..\html\canvas\CanvasContextAttributes.h"> 14785 14782 <Filter>html\canvas</Filter> 14786 14783 </ClInclude> 14787 <ClInclude Include="..\platform\graphics\GLContext.h">14788 <Filter>platform\graphics\cairo</Filter>14789 </ClInclude>14790 14784 <ClInclude Include="..\platform\graphics\egl\GLContextEGL.h"> 14791 14785 <Filter>platform\graphics\egl</Filter> … … 14801 14795 </ClInclude> 14802 14796 <ClInclude Include="..\platform\graphics\MediaPlayerPrivate.h"> 14797 <Filter>platform\graphics</Filter> 14798 </ClInclude> 14799 <ClInclude Include="..\platform\graphics\GraphicsContext3DPrivate.h"> 14800 <Filter>platform\graphics</Filter> 14801 </ClInclude> 14802 <ClInclude Include="..\platform\graphics\GLContext.h"> 14803 14803 <Filter>platform\graphics</Filter> 14804 14804 </ClInclude> -
trunk/Source/WebCore/platform/graphics/GraphicsContext3D.h
r153042 r153843 38 38 #include <wtf/RefCounted.h> 39 39 #include <wtf/text/WTFString.h> 40 41 #if USE(CA) 42 #include "PlatformCALayer.h" 43 #endif 40 44 41 45 // FIXME: Find a better way to avoid the name confliction for NO_ERROR. … … 951 955 CGLContextObj m_contextObj; 952 956 RetainPtr<WebGLLayer> m_webGLLayer; 957 #elif PLATFORM(WIN) && USE(CA) 958 RefPtr<PlatformCALayer> m_webGLLayer; 953 959 #elif PLATFORM(BLACKBERRY) 954 960 #if USE(ACCELERATED_COMPOSITING) -
trunk/Source/WebCore/platform/graphics/GraphicsContext3DPrivate.cpp
r153766 r153843 25 25 #include "HostWindow.h" 26 26 #include "NotImplemented.h" 27 #include <wtf/OwnArrayPtr.h> 28 29 #if USE(CAIRO) 27 30 #include "PlatformContextCairo.h" 28 # include <wtf/OwnArrayPtr.h>31 #endif 29 32 30 33 #if USE(OPENGL_ES_2) -
trunk/Source/WebCore/platform/graphics/win/GraphicsContext3DWin.cpp
r153441 r153843 28 28 #if USE(3D_GRAPHICS) 29 29 30 #include "GraphicsContext3DPrivate.h" 30 31 #include <wtf/NotFound.h> 31 32 #include <wtf/OwnPtr.h> … … 46 47 47 48 namespace WebCore { 48 49 // FIXME: This class is currently empty on Windows, but will get populated as50 // the restructuring in https://bugs.webkit.org/show_bug.cgi?id=66903 is done51 class GraphicsContext3DPrivate {52 public:53 GraphicsContext3DPrivate(GraphicsContext3D*) { }54 55 ~GraphicsContext3DPrivate() { }56 };57 49 58 50 PassRefPtr<GraphicsContext3D> GraphicsContext3D::create(GraphicsContext3D::Attributes attributes, HostWindow* hostWindow, GraphicsContext3D::RenderStyle renderStyle) … … 88 80 , m_multisampleDepthStencilBuffer(0) 89 81 , m_multisampleColorBuffer(0) 82 , m_private(GraphicsContext3DPrivate::create(this, renderStyle)) 90 83 { 91 84 makeContextCurrent(); 92 85 93 86 validateAttributes(); 87 88 #if USE(CA) 89 m_webGLLayer = PlatformCALayer::create(PlatformCALayer::LayerTypeLayer, 0); 90 #endif 94 91 95 92 if (renderStyle == RenderOffscreen) { … … 177 174 bool GraphicsContext3D::makeContextCurrent() 178 175 { 179 return false; 176 if (!m_private) 177 return false; 178 return m_private->makeContextCurrent(); 180 179 } 181 180 182 181 PlatformGraphicsContext3D GraphicsContext3D::platformGraphicsContext3D() 183 182 { 184 return 0;183 return m_private->platformContext(); 185 184 } 186 185 … … 202 201 PlatformLayer* GraphicsContext3D::platformLayer() const 203 202 { 204 return 0;203 return m_webGLLayer->platformLayer(); 205 204 } 206 205 #endif
Note:
See TracChangeset
for help on using the changeset viewer.