|
Lines 109-120
void TextureMapperLayer::paintSelf(const TextureMapperPaintOptions& options)
a/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp_sec1
|
| 109 |
float opacity = options.opacity; |
109 |
float opacity = options.opacity; |
| 110 |
RefPtr<BitmapTexture> mask = options.mask; |
110 |
RefPtr<BitmapTexture> mask = options.mask; |
| 111 |
|
111 |
|
| 112 |
if (m_state.backgroundColor.alpha() && !m_state.contentsRect.isEmpty()) { |
112 |
if (m_state.solidColor.isValid() && !m_state.contentsRect.isEmpty()) { |
| 113 |
Color color = m_state.backgroundColor; |
113 |
if (!m_state.solidColor.alpha()) |
|
|
114 |
return; |
| 115 |
|
| 116 |
Color color = m_state.solidColor; |
| 114 |
float r, g, b, a; |
117 |
float r, g, b, a; |
| 115 |
color.getRGBA(r, g, b, a); |
118 |
color.getRGBA(r, g, b, a); |
| 116 |
color = Color(r * opacity, g * opacity, b * opacity, a * opacity); |
119 |
color = Color(r * opacity, g * opacity, b * opacity, a * opacity); |
| 117 |
options.textureMapper->drawSolidColor(m_state.contentsRect, transform, color); |
120 |
options.textureMapper->drawSolidColor(m_state.contentsRect, transform, color); |
|
|
121 |
return; |
| 118 |
} |
122 |
} |
| 119 |
|
123 |
|
| 120 |
if (m_backingStore) { |
124 |
if (m_backingStore) { |
|
Lines 436-442
void TextureMapperLayer::flushCompositingStateSelf(GraphicsLayerTextureMapper* g
a/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp_sec2
|
| 436 |
m_state.backfaceVisibility = graphicsLayer->backfaceVisibility(); |
440 |
m_state.backfaceVisibility = graphicsLayer->backfaceVisibility(); |
| 437 |
m_state.childrenTransform = graphicsLayer->childrenTransform(); |
441 |
m_state.childrenTransform = graphicsLayer->childrenTransform(); |
| 438 |
m_state.opacity = graphicsLayer->opacity(); |
442 |
m_state.opacity = graphicsLayer->opacity(); |
| 439 |
m_state.backgroundColor = graphicsLayer->backgroundColor(); |
443 |
m_state.solidColor = graphicsLayer->solidColor(); |
| 440 |
#if ENABLE(CSS_FILTERS) |
444 |
#if ENABLE(CSS_FILTERS) |
| 441 |
if (changeMask & FilterChange) |
445 |
if (changeMask & FilterChange) |
| 442 |
m_state.filters = graphicsLayer->filters(); |
446 |
m_state.filters = graphicsLayer->filters(); |