Index: third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp |
diff --git a/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp b/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp |
index d31e86f12875f955069334868f8e0bd978086e67..eae44d909f0666684d09acf69996f3826de611b6 100644 |
--- a/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp |
+++ b/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp |
@@ -92,11 +92,8 @@ void WebLayerTreeViewImplForTesting::setDeviceScaleFactor( |
void WebLayerTreeViewImplForTesting::setBackgroundColor(WebColor color) { |
m_layerTreeHost->set_background_color(color); |
-} |
- |
-void WebLayerTreeViewImplForTesting::setHasTransparentBackground( |
- bool transparent) { |
- m_layerTreeHost->set_has_transparent_background(transparent); |
+ m_layerTreeHost->set_has_transparent_background(SkColorGetA(color) < |
+ SK_AlphaOPAQUE); |
} |
void WebLayerTreeViewImplForTesting::setVisible(bool visible) { |