-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=90325 Patch by Brian Anderson <brianderson@chromium.org> on 2012-07-23 Reviewed by Kenneth Russell. Source/Platform: Adds shallowFlushCHROMIUM to WebGraphicsContext3D. * chromium/public/WebGraphicsContext3D.h: (WebGraphicsContext3D): (WebKit::WebGraphicsContext3D::shallowFlushCHROMIUM): Source/WebCore: Adds plumbing for the shallowFlushCHROMIUM extension and uses shallow flushes instead of normal flushes when uploading textures. Shallow flushes allow us to initiate command buffer flushes to the GPU thread/process without the overhead of a true glFlush. CCTextureUpdaterTest updated to recognize shallow flushes. * platform/chromium/support/Extensions3DChromium.cpp: (WebCore::Extensions3DChromium::shallowFlushCHROMIUM): (WebCore): * platform/graphics/chromium/Extensions3DChromium.h: (Extensions3DChromium): * platform/graphics/chromium/cc/CCGraphicsContext.h: * platform/graphics/chromium/cc/CCResourceProvider.cpp: (WebCore::CCResourceProvider::shallowFlushIfSupported): (WebCore): (WebCore::CCResourceProvider::CCResourceProvider): (WebCore::CCResourceProvider::initialize): * platform/graphics/chromium/cc/CCResourceProvider.h: (CCResourceProvider): * platform/graphics/chromium/cc/CCTextureUpdater.cpp: (WebCore::CCTextureUpdater::update): Source/WebKit/chromium: Changed CCTextureUpdaterTest to recognize shallowFlushCHROMIUM(). * tests/CCTextureUpdaterTest.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123416 268f45cc-cd09-0410-ab3c-d52691b4dbfc
64fb381c