I'm trying to build webkit chromium port on Windows with 3D_CANVAS support turned off, here is what I did to build it:
- modify WebKit/WebKit/chromium/features.gypi, set ENABLE_3D_CANVAS=0
- build-webkit --chromium --release
I got a bunch of link errors while linking against webcore.lib, after checking the source code I found that with ENABLE_3D_CANVAS=0, the implementation of GraphicsContext3D is pulled out, but it's still being used at a lot of places, like GLES2Canvas.cpp.
Here is one of the link error:
webcore.lib(PlatformContextSkia.obj) : error LNK2019: unresolved external symbol "public: void __thiscall WebCore::GraphicsContext3D::readPixels(long,long,unsigned long,unsigned long,unsigned long,unsigned long,void *)" (?readPixels@GraphicsContext3D@WebCore@@QAEXJJKKKKPAX@Z)),referenced by "private: void __thiscall WebCore::PlatformContextSkia::readbackHardwareToSoftware(void)const " (?readbackHardwareToSoftware@PlatformContextSkia@WebCore@@ABEXXZ)
Since the code base is used by an internal product, I cannot run the risk of getting latest code from chromium. It would be grateful if someone can help me on this!