Implementation of a GL-virtualization layer for Skia. This allows for
authortwiz@google.com <twiz@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 14 Mar 2011 21:23:01 +0000 (21:23 +0000)
committertwiz@google.com <twiz@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 14 Mar 2011 21:23:01 +0000 (21:23 +0000)
commit59a190bcab5d4b2bf03f8f10cb6a581d19fed403
tree86335475250c187f467aeff3bfb8d81084016c1f
parentcd9d69b9ce7eb301a9fd8d91b9f95fd99b07bae5
Implementation of a GL-virtualization layer for Skia.  This allows for
environments using skia to specify a GL implementation at run-time, instead of
relying on the linker to pull in the appropriate GL impl.

A new structure, GrGLInterface is exposed.  This struct contains a set of
function pointers that should point to an appropriate GL implementation.

This change also removes the reliance on GLew on windows builds.

Review: http://codereview.appspot.com/4254059/

git-svn-id: http://skia.googlecode.com/svn/trunk@937 2bbb7eff-a529-9590-31e7-b0007b416f81
15 files changed:
gpu/include/GrGLConfig.h
gpu/include/GrGLInterface.h [new file with mode: 0644]
gpu/include/GrGLPlatformIncludes.h [new file with mode: 0644]
gpu/src/GrGLIndexBuffer.cpp
gpu/src/GrGLInterface.cpp [new file with mode: 0644]
gpu/src/GrGLTexture.cpp
gpu/src/GrGLUtil.cpp
gpu/src/GrGLVertexBuffer.cpp
gpu/src/GrGpuFactory.cpp
gpu/src/GrGpuGL.cpp
gpu/src/GrGpuGL.h
gpu/src/gr_files.mk
vs/SampleApp/SampleApp.vcxproj
vs/SampleApp/SampleApp.vcxproj.filters
xcode/gpu/gpu.xcodeproj/project.pbxproj