|
| 1 | +2011-02-24 James Robinson < [email protected]> |
| 2 | + |
| 3 | + Reviewed by Kenneth Russell. |
| 4 | + |
| 5 | + [chromium] Move draw time properties out of *LayerChromium to CCLayerImpl |
| 6 | + https://bugs.webkit.org/show_bug.cgi?id=55013 |
| 7 | + |
| 8 | + This adds a new type (tentatively named CCLayerImpl) responsible for drawing/compositing layers. |
| 9 | + Currently LayerChromiums know about their CCLayerImpls and CCLayerImpls rely on the LayerChromium |
| 10 | + tree for structure. In theory updates are a LayerChromium-only concept and draw is a CCLayerImpl-only |
| 11 | + concept, but this patch doesn't go all there yet in the interest of keeping the patch small-ish. |
| 12 | + |
| 13 | + RenderSurfaces are a CCLayerImpl-only concepts and no longer have any direct LayerChromium dependencies. |
| 14 | + |
| 15 | + Note: I've put CCLayerImpl into a new 'cc' directory under platform/graphics/chromium/ and intentionally |
| 16 | + not added it to the include path. We plan to add more compositor implementation details to this directory |
| 17 | + and we want to keep accidental dependencies on these files to a minimum. |
| 18 | + |
| 19 | + See https://bugs.webkit.org/show_bug.cgi?id=54047 for the big picture. |
| 20 | + |
| 21 | + Refactor only, compositing/ tests cover these codepaths. |
| 22 | + |
| 23 | + * WebCore.gypi: |
| 24 | + * platform/graphics/chromium/CanvasLayerChromium.cpp: |
| 25 | + (WebCore::CanvasLayerChromium::draw): |
| 26 | + * platform/graphics/chromium/ContentLayerChromium.cpp: |
| 27 | + (WebCore::ContentLayerChromium::requiresClippedUpdateRect): |
| 28 | + (WebCore::ContentLayerChromium::updateContentsIfDirty): |
| 29 | + (WebCore::ContentLayerChromium::draw): |
| 30 | + * platform/graphics/chromium/LayerChromium.cpp: |
| 31 | + (WebCore::LayerChromium::LayerChromium): |
| 32 | + (WebCore::LayerChromium::cleanupResources): |
| 33 | + (WebCore::LayerChromium::setLayerRenderer): |
| 34 | + (WebCore::LayerChromium::setBounds): |
| 35 | + (WebCore::LayerChromium::setFrame): |
| 36 | + (WebCore::LayerChromium::setNeedsDisplay): |
| 37 | + (WebCore::LayerChromium::setBorderColor): |
| 38 | + (WebCore::LayerChromium::borderColor): |
| 39 | + (WebCore::LayerChromium::setBorderWidth): |
| 40 | + (WebCore::LayerChromium::borderWidth): |
| 41 | + (WebCore::LayerChromium::layerRenderer): |
| 42 | + (WebCore::LayerChromium::setDoubleSided): |
| 43 | + (WebCore::LayerChromium::bounds): |
| 44 | + * platform/graphics/chromium/LayerChromium.h: |
| 45 | + (WebCore::LayerChromium::maskDrawLayer): |
| 46 | + (WebCore::LayerChromium::ccLayerImpl): |
| 47 | + * platform/graphics/chromium/LayerRendererChromium.cpp: |
| 48 | + (WebCore::LayerRendererChromium::compareLayerZ): |
| 49 | + (WebCore::LayerRendererChromium::drawLayers): |
| 50 | + (WebCore::LayerRendererChromium::updateLayersRecursive): |
| 51 | + (WebCore::LayerRendererChromium::setCompositeOffscreen): |
| 52 | + (WebCore::LayerRendererChromium::getOffscreenLayerTexture): |
| 53 | + (WebCore::LayerRendererChromium::drawLayer): |
| 54 | + * platform/graphics/chromium/LayerRendererChromium.h: |
| 55 | + * platform/graphics/chromium/PluginLayerChromium.cpp: |
| 56 | + (WebCore::PluginLayerChromium::draw): |
| 57 | + * platform/graphics/chromium/RenderSurfaceChromium.cpp: |
| 58 | + (WebCore::RenderSurfaceChromium::RenderSurfaceChromium): |
| 59 | + (WebCore::RenderSurfaceChromium::drawSurface): |
| 60 | + (WebCore::RenderSurfaceChromium::draw): |
| 61 | + * platform/graphics/chromium/RenderSurfaceChromium.h: |
| 62 | + * platform/graphics/chromium/VideoLayerChromium.cpp: |
| 63 | + (WebCore::VideoLayerChromium::drawYUV): |
| 64 | + (WebCore::VideoLayerChromium::drawRGBA): |
| 65 | + * platform/graphics/chromium/cc/CCLayerImpl.cpp: Added. |
| 66 | + (WebCore::CCLayerImpl::CCLayerImpl): |
| 67 | + (WebCore::CCLayerImpl::~CCLayerImpl): |
| 68 | + (WebCore::CCLayerImpl::superlayer): |
| 69 | + (WebCore::CCLayerImpl::maskLayer): |
| 70 | + (WebCore::CCLayerImpl::replicaLayer): |
| 71 | + (WebCore::CCLayerImpl::setLayerRenderer): |
| 72 | + (WebCore::CCLayerImpl::createRenderSurface): |
| 73 | + (WebCore::CCLayerImpl::updateContentsIfDirty): |
| 74 | + (WebCore::CCLayerImpl::drawsContent): |
| 75 | + (WebCore::CCLayerImpl::draw): |
| 76 | + (WebCore::CCLayerImpl::unreserveContentsTexture): |
| 77 | + (WebCore::CCLayerImpl::bindContentsTexture): |
| 78 | + (WebCore::CCLayerImpl::cleanupResources): |
| 79 | + (WebCore::CCLayerImpl::getDrawRect): |
| 80 | + (WebCore::CCLayerImpl::drawDebugBorder): |
| 81 | + * platform/graphics/chromium/cc/CCLayerImpl.h: Added. |
| 82 | + (WebCore::CCLayerImpl::create): |
| 83 | + (WebCore::CCLayerImpl::setDebugBorderColor): |
| 84 | + (WebCore::CCLayerImpl::debugBorderColor): |
| 85 | + (WebCore::CCLayerImpl::setDebugBorderWidth): |
| 86 | + (WebCore::CCLayerImpl::debugBorderWidth): |
| 87 | + (WebCore::CCLayerImpl::layerRenderer): |
| 88 | + (WebCore::CCLayerImpl::renderSurface): |
| 89 | + (WebCore::CCLayerImpl::clearRenderSurface): |
| 90 | + (WebCore::CCLayerImpl::drawDepth): |
| 91 | + (WebCore::CCLayerImpl::setDrawDepth): |
| 92 | + (WebCore::CCLayerImpl::drawOpacity): |
| 93 | + (WebCore::CCLayerImpl::setDrawOpacity): |
| 94 | + (WebCore::CCLayerImpl::scissorRect): |
| 95 | + (WebCore::CCLayerImpl::setScissorRect): |
| 96 | + (WebCore::CCLayerImpl::targetRenderSurface): |
| 97 | + (WebCore::CCLayerImpl::setTargetRenderSurface): |
| 98 | + (WebCore::CCLayerImpl::doubleSided): |
| 99 | + (WebCore::CCLayerImpl::setDoubleSided): |
| 100 | + (WebCore::CCLayerImpl::bounds): |
| 101 | + (WebCore::CCLayerImpl::setBounds): |
| 102 | + (WebCore::CCLayerImpl::drawTransform): |
| 103 | + (WebCore::CCLayerImpl::setDrawTransform): |
| 104 | + (WebCore::CCLayerImpl::drawableContentRect): |
| 105 | + (WebCore::CCLayerImpl::setDrawableContentRect): |
| 106 | + |
1 | 107 | 2011-02-24 Dan Bernstein < [email protected]>
|
2 | 108 |
|
3 | 109 | Reviewed by Simon Fraser.
|
|
0 commit comments