|
Lines 242-248
void GraphicsLayerChromium::clearBackgroundColor()
a/Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp_sec1
|
| 242 |
void GraphicsLayerChromium::setContentsOpaque(bool opaque) |
242 |
void GraphicsLayerChromium::setContentsOpaque(bool opaque) |
| 243 |
{ |
243 |
{ |
| 244 |
GraphicsLayer::setContentsOpaque(opaque); |
244 |
GraphicsLayer::setContentsOpaque(opaque); |
| 245 |
updateContentsOpaque(); |
245 |
m_layer->setOpaque(m_contentsOpaque); |
| 246 |
} |
246 |
} |
| 247 |
|
247 |
|
| 248 |
void GraphicsLayerChromium::setMaskLayer(GraphicsLayer* maskLayer) |
248 |
void GraphicsLayerChromium::setMaskLayer(GraphicsLayer* maskLayer) |
|
Lines 261-267
void GraphicsLayerChromium::setMaskLayer(GraphicsLayer* maskLayer)
a/Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp_sec2
|
| 261 |
void GraphicsLayerChromium::setBackfaceVisibility(bool visible) |
261 |
void GraphicsLayerChromium::setBackfaceVisibility(bool visible) |
| 262 |
{ |
262 |
{ |
| 263 |
GraphicsLayer::setBackfaceVisibility(visible); |
263 |
GraphicsLayer::setBackfaceVisibility(visible); |
| 264 |
updateBackfaceVisibility(); |
264 |
m_layer->setDoubleSided(m_backfaceVisibility); |
| 265 |
} |
265 |
} |
| 266 |
|
266 |
|
| 267 |
void GraphicsLayerChromium::setOpacity(float opacity) |
267 |
void GraphicsLayerChromium::setOpacity(float opacity) |
|
Lines 514-529
void GraphicsLayerChromium::updateMasksToBounds()
a/Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp_sec3
|
| 514 |
updateDebugIndicators(); |
514 |
updateDebugIndicators(); |
| 515 |
} |
515 |
} |
| 516 |
|
516 |
|
| 517 |
void GraphicsLayerChromium::updateContentsOpaque() |
|
|
| 518 |
{ |
| 519 |
m_layer->setOpaque(m_contentsOpaque); |
| 520 |
} |
| 521 |
|
| 522 |
void GraphicsLayerChromium::updateBackfaceVisibility() |
| 523 |
{ |
| 524 |
m_layer->setDoubleSided(m_backfaceVisibility); |
| 525 |
} |
| 526 |
|
| 527 |
void GraphicsLayerChromium::updateLayerPreserves3D() |
517 |
void GraphicsLayerChromium::updateLayerPreserves3D() |
| 528 |
{ |
518 |
{ |
| 529 |
if (m_preserves3D && !m_transformLayer) { |
519 |
if (m_preserves3D && !m_transformLayer) { |
|
Lines 574-580
void GraphicsLayerChromium::updateLayerPreserves3D()
a/Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp_sec4
|
| 574 |
} |
564 |
} |
| 575 |
|
565 |
|
| 576 |
m_layer->setPreserves3D(m_preserves3D); |
566 |
m_layer->setPreserves3D(m_preserves3D); |
| 577 |
updateOpacityOnLayer(); |
567 |
primaryLayer()->setOpacity(m_opacity); |
| 578 |
updateNames(); |
568 |
updateNames(); |
| 579 |
} |
569 |
} |
| 580 |
|
570 |
|
|
Lines 658-669
float GraphicsLayerChromium::contentsScale() const
a/Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp_sec5
|
| 658 |
return 1; |
648 |
return 1; |
| 659 |
} |
649 |
} |
| 660 |
|
650 |
|
| 661 |
// This function simply mimics the operation of GraphicsLayerCA |
|
|
| 662 |
void GraphicsLayerChromium::updateOpacityOnLayer() |
| 663 |
{ |
| 664 |
primaryLayer()->setOpacity(m_opacity); |
| 665 |
} |
| 666 |
|
| 667 |
void GraphicsLayerChromium::deviceOrPageScaleFactorChanged() |
651 |
void GraphicsLayerChromium::deviceOrPageScaleFactorChanged() |
| 668 |
{ |
652 |
{ |
| 669 |
updateContentsScale(); |
653 |
updateContentsScale(); |