Commit cadf06f8 authored by Mike Reed's avatar Mike Reed Committed by Commit Bot

remove call to deprecated asComponentTable and asColorMode

Bug: skia:8941
Change-Id: I7f6383244c5c3ce5c786ed120e4e433711b0b177
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1548376Reviewed-by: default avatarFlorin Malita <fmalita@chromium.org>
Commit-Queue: Mike Reed <reed@google.com>
Cr-Commit-Position: refs/heads/master@{#646549}
parent 19dd3bcd
...@@ -153,24 +153,6 @@ std::unique_ptr<base::Value> AsValue(const SkColorFilter& filter) { ...@@ -153,24 +153,6 @@ std::unique_ptr<base::Value> AsValue(const SkColorFilter& filter) {
val->Set("color_matrix", std::move(color_matrix_val)); val->Set("color_matrix", std::move(color_matrix_val));
} }
SkColor color;
SkBlendMode mode;
if (filter.asColorMode(&color, &mode)) {
std::unique_ptr<base::DictionaryValue> color_mode_val(
new base::DictionaryValue());
color_mode_val->Set("color", AsValue(color));
color_mode_val->Set("mode", AsValue(mode));
val->Set("color_mode", std::move(color_mode_val));
}
if (filter.asComponentTable(nullptr)) {
std::unique_ptr<base::DictionaryValue> component_table_val(
new base::DictionaryValue());
// use this as a marker for now
val->Set("component_table", std::move(component_table_val));
}
return std::move(val); return std::move(val);
} }
......
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