diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-15 01:47:44 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-15 01:47:44 +0000 |
commit | 3dce37234c2bdbd6f5114eca99ef65bf661f6fb9 (patch) | |
tree | 8989263baf7d330444e5828d790bb99fa45113f1 /cc/layer.cc | |
parent | e3806df6c8c07d29a50ee5493f4c0e81f63e9837 (diff) | |
download | chromium_src-3dce37234c2bdbd6f5114eca99ef65bf661f6fb9.zip chromium_src-3dce37234c2bdbd6f5114eca99ef65bf661f6fb9.tar.gz chromium_src-3dce37234c2bdbd6f5114eca99ef65bf661f6fb9.tar.bz2 |
cc: Add support for debugging layer borders directly in the compositor
Instead of supporting --show-composited-layer-borders via the GraphicsLayer
debug borders mechanism, show debug borders on layers when the new
LayerTreeSetting flag showDebugBorders is enabled.
This depends on https://bugs.webkit.org/show_bug.cgi?id=102130
BUG=159769
R=jamesr,enne
Review URL: https://chromiumcodereview.appspot.com/11365239
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167815 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer.cc')
-rw-r--r-- | cc/layer.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/cc/layer.cc b/cc/layer.cc index 8164ee9..c69418d 100644 --- a/cc/layer.cc +++ b/cc/layer.cc @@ -41,8 +41,6 @@ Layer::Layer() , m_touchEventHandlerRegionChanged(false) , m_anchorPoint(0.5, 0.5) , m_backgroundColor(0) - , m_debugBorderColor(0) - , m_debugBorderWidth(0) , m_opacity(1.0) , m_filter(0) , m_anchorPointZ(0) @@ -564,8 +562,6 @@ void Layer::pushPropertiesTo(LayerImpl* layer) layer->setBounds(m_bounds); layer->setContentBounds(contentBounds()); layer->setContentsScale(contentsScaleX(), contentsScaleY()); - layer->setDebugBorderColor(m_debugBorderColor); - layer->setDebugBorderWidth(m_debugBorderWidth); layer->setDebugName(m_debugName); layer->setDoubleSided(m_doubleSided); layer->setDrawCheckerboardForMissingTiles(m_drawCheckerboardForMissingTiles); @@ -641,18 +637,6 @@ bool Layer::needMoreUpdates() return false; } -void Layer::setDebugBorderColor(SkColor color) -{ - m_debugBorderColor = color; - setNeedsCommit(); -} - -void Layer::setDebugBorderWidth(float width) -{ - m_debugBorderWidth = width; - setNeedsCommit(); -} - void Layer::setDebugName(const std::string& debugName) { m_debugName = debugName; |