css - 显示合成图层边框(蓝色边框)

标签 css google-chrome google-chrome-devtools hardware-acceleration

我制作了简单的简化测试用例(JSBIN)来检查filteropacitytransform 是否在compositor thread 上运行 在制作动画时,它们是。如果您打开 Chrome Dev Tools 并使用功能显示复合层边框,您将看到第一个 div 周围有蓝色 边框,最后 2 个有 < strong>橙色边框。为什么这是错误或功能?我在 Ubuntu 上,所以你们也能在其他平台上看到这种行为吗?

最佳答案

我找到了答案。在这里Debugging-composited-layers

而且你还可以看到here Chromium 根据某些条件使用不同的颜色。

代码注释得很好,例如,如果图像是合成的,则图像应具有 olive 颜色。我在 JSBIN 上测试过如果您打开 --show-compisited-layer-borders 并且图像具有橄榄色边框。

这是代码片段和注释。

// Image layers are olive.
SkColor DebugColors::ImageLayerBorderColor() {
  return SkColorSetARGB(128, 128, 128, 0);
}
int DebugColors::ImageLayerBorderWidth(const LayerTreeImpl* tree_impl) {
  return Scale(2, tree_impl);
}

关于css - 显示合成图层边框(蓝色边框),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29065260/

相关文章:

html - 在 Mac OS X 上的 html 页面中全屏显示

javascript - 弹出窗口拦截器 API - 如何检查用户是否启用了它

windows - Html5 Canvas : Rotated text looks distorted on Google Chrome

google-chrome-devtools - 性能面板的 "Network"部分中每个请求的线和条是什么意思?

javascript - 如何在 Chrome 开发工具中列出数组的原型(prototype)属性?

javascript - Polymer 1.2.4 paper-progress 和 iron-image 有疯狂的 border-radius

javascript - JS html css 改css需要了解

javascript - 使用 redux-form 错误呈现时创建可关闭的 Bootstrap v3 警报

javascript - 我如何在 chrome 或 firefox 中以像素显示边框高度和宽度以测试响应式网页设计

google-chrome - 如何在 Google Chrome 中跟踪奇怪的网络调用?