[chromium] Add WebSolidColorLayer interface to draw non-textured color layers from...
authorwjmaclean@chromium.org <wjmaclean@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 23 Jan 2012 20:00:57 +0000 (20:00 +0000)
committerwjmaclean@chromium.org <wjmaclean@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 23 Jan 2012 20:00:57 +0000 (20:00 +0000)
commit632ff8f0df240b6a00927847da53d9b4fef0b298
tree02e4ece0661dce13254939a2a31e37de9ef8e5cc
parentee769d43a4aecd911f0d5d54643966be38365bab
[chromium] Add WebSolidColorLayer interface to draw non-textured color layers from Aura.
https://bugs.webkit.org/show_bug.cgi?id=75732

Reviewed by James Robinson.

Source/WebCore:

Add WebSolidColorLayer to paint solid-color layers without a backing texture.

Test: unit test for CCSolidColorLayerImpl.

* WebCore.gypi:
* platform/graphics/chromium/SolidColorLayerChromium.cpp: Added.
(WebCore::SolidColorLayerChromium::createCCLayerImpl):
(WebCore::SolidColorLayerChromium::create):
(WebCore::SolidColorLayerChromium::SolidColorLayerChromium):
(WebCore::SolidColorLayerChromium::~SolidColorLayerChromium):
* platform/graphics/chromium/SolidColorLayerChromium.h: Added.
* platform/graphics/chromium/cc/CCSolidColorLayerImpl.cpp: Added.
(WebCore::CCSolidColorLayerImpl::CCSolidColorLayerImpl):
(WebCore::CCSolidColorLayerImpl::~CCSolidColorLayerImpl):
(WebCore::CCSolidColorLayerImpl::quadTransform):
(WebCore::CCSolidColorLayerImpl::appendQuads):
* platform/graphics/chromium/cc/CCSolidColorLayerImpl.h: Added.
(WebCore::CCSolidColorLayerImpl::create):
(WebCore::CCSolidColorLayerImpl::layerTypeAsString):

Source/WebKit/chromium:

* WebKit.gyp:
* WebKit.gypi:
* public/platform/WebSolidColorLayer.h: Added.
* src/WebSolidColorLayer.cpp: Added.
(WebKit::WebSolidColorLayer::create):
(WebKit::WebSolidColorLayer::WebSolidColorLayer):
(WebKit::WebSolidColorLayer::setBackgroundColor):
* src/WebSolidColorLayerImpl.cpp: Added.
(WebKit::WebSolidColorLayerImpl::create):
(WebKit::WebSolidColorLayerImpl::WebSolidColorLayerImpl):
(WebKit::WebSolidColorLayerImpl::~WebSolidColorLayerImpl):
* src/WebSolidColorLayerImpl.h: Added.
* tests/CCLayerTestCommon.cpp: Added.
(CCLayerTestCommon::completelyContains):
(CCLayerTestCommon::verifyQuadsExactlyCoverRect):
* tests/CCLayerTestCommon.h: Added.
* tests/CCSolidColorLayerImplTest.cpp: Added.
(CCLayerTestCommon::TEST):
* tests/CCTiledLayerImplTest.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105634 268f45cc-cd09-0410-ab3c-d52691b4dbfc
17 files changed:
Source/WebCore/ChangeLog
Source/WebCore/WebCore.gypi
Source/WebCore/platform/graphics/chromium/SolidColorLayerChromium.cpp [new file with mode: 0644]
Source/WebCore/platform/graphics/chromium/SolidColorLayerChromium.h [new file with mode: 0644]
Source/WebCore/platform/graphics/chromium/cc/CCSolidColorLayerImpl.cpp [new file with mode: 0644]
Source/WebCore/platform/graphics/chromium/cc/CCSolidColorLayerImpl.h [new file with mode: 0644]
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/WebKit.gyp
Source/WebKit/chromium/WebKit.gypi
Source/WebKit/chromium/public/platform/WebSolidColorLayer.h [new file with mode: 0644]
Source/WebKit/chromium/src/WebSolidColorLayer.cpp [new file with mode: 0644]
Source/WebKit/chromium/src/WebSolidColorLayerImpl.cpp [new file with mode: 0644]
Source/WebKit/chromium/src/WebSolidColorLayerImpl.h [new file with mode: 0644]
Source/WebKit/chromium/tests/CCLayerTestCommon.cpp [new file with mode: 0644]
Source/WebKit/chromium/tests/CCLayerTestCommon.h [new file with mode: 0644]
Source/WebKit/chromium/tests/CCSolidColorLayerImplTest.cpp [new file with mode: 0644]
Source/WebKit/chromium/tests/CCTiledLayerImplTest.cpp