Commit 25af831a authored by Mitsuru Oshima's avatar Mitsuru Oshima Committed by Commit Bot

Add subpixel-offset attribute to layer attirbute view.

Bug: None

Change-Id: I699335142351d8a33e031db7d8d921536d06a3e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2336496Reviewed-by: default avatarWei Li <weili@chromium.org>
Commit-Queue: Mitsuru Oshima <oshima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#794734}
parent be910d40
...@@ -31,6 +31,9 @@ void AppendLayerPropertiesMatchedStyle( ...@@ -31,6 +31,9 @@ void AppendLayerPropertiesMatchedStyle(
base::NumberToString(layer->layer_brightness())); base::NumberToString(layer->layer_brightness()));
ret->emplace_back("layer-grayscale", ret->emplace_back("layer-grayscale",
base::NumberToString(layer->layer_grayscale())); base::NumberToString(layer->layer_grayscale()));
const auto offset = layer->GetSubpixelOffset();
if (!offset.IsZero())
ret->emplace_back("layer-subpixel-offset", offset.ToString());
const ui::Layer::ShapeRects* alpha_shape_bounds = layer->alpha_shape(); const ui::Layer::ShapeRects* alpha_shape_bounds = layer->alpha_shape();
if (alpha_shape_bounds && alpha_shape_bounds->size()) { if (alpha_shape_bounds && alpha_shape_bounds->size()) {
gfx::Rect bounding_box; gfx::Rect bounding_box;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment