Commit e2c214ab authored by Herb Derby's avatar Herb Derby Committed by Commit Bot

Don't use SkTextBlobCacheDiffCanvas::Settings

Most of the fields for Settings are not used. Just
pass the distance field text capability as a bool.

See matching CL:
https://skia-review.googlesource.com/c/skia/+/235102

Change-Id: I0c0d4db0386ce98dbd5856129e5a60ab28d6ac61
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1758438Reviewed-by: default avatarBen Wagner <bungeman@chromium.org>
Reviewed-by: default avatarKhushal <khushalsagar@chromium.org>
Commit-Queue: Herb Derby <herb@google.com>
Cr-Commit-Position: refs/heads/master@{#688282}
parent e4fe4ff4
......@@ -46,18 +46,6 @@ PlaybackParams MakeParams(const SkCanvas* canvas) {
return PlaybackParams(nullptr, canvas->getTotalMatrix());
}
SkTextBlobCacheDiffCanvas::Settings MakeCanvasSettings(
bool context_supports_distance_field_text,
int max_texture_size,
size_t max_texture_bytes) {
SkTextBlobCacheDiffCanvas::Settings settings;
settings.fContextSupportsDistanceFieldText =
context_supports_distance_field_text;
settings.fMaxTextureSize = max_texture_size;
settings.fMaxTextureBytes = max_texture_bytes;
return settings;
}
// Use half of the max int as the extent for the SkNoDrawCanvas. The correct
// clip is applied to the canvas during serialization.
const int kMaxExtent = std::numeric_limits<int>::max() >> 1;
......@@ -91,9 +79,7 @@ PaintOpBufferSerializer::PaintOpBufferSerializer(
ComputeSurfaceProps(can_use_lcd_text),
strike_server,
std::move(color_space),
MakeCanvasSettings(context_supports_distance_field_text,
max_texture_size,
max_texture_bytes)) {
context_supports_distance_field_text) {
DCHECK(serialize_cb_);
}
......
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