Commit 2eafcaba authored by Antoine Labour's avatar Antoine Labour Committed by Commit Bot

Remove TileDrawInfo::has_compressed_resource

It's always false.

Bug: 889651
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: I50e3b03ff3b25bc8759b79463b72e3b63ebbd8a5
Reviewed-on: https://chromium-review.googlesource.com/c/1259944Reviewed-by: default avatardanakj <danakj@chromium.org>
Commit-Queue: Antoine Labour <piman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596421}
parent 05a41fa6
......@@ -398,9 +398,6 @@ void PictureLayerImpl::AppendQuads(viz::RenderPass* render_pass,
} else if (mode == TileDrawInfo::OOM_MODE) {
color = DebugColors::OOMTileBorderColor();
width = DebugColors::OOMTileBorderWidth(device_scale_factor);
} else if (iter->draw_info().has_compressed_resource()) {
color = DebugColors::CompressedTileBorderColor();
width = DebugColors::CompressedTileBorderWidth(device_scale_factor);
} else if (iter.resolution() == HIGH_RESOLUTION) {
color = DebugColors::HighResTileBorderColor();
width = DebugColors::HighResTileBorderWidth(device_scale_factor);
......
......@@ -83,10 +83,6 @@ class CC_EXPORT TileDrawInfo {
const ResourcePool::InUsePoolResource& GetResource();
inline bool has_compressed_resource() const {
return resource_ ? IsResourceFormatCompressed(resource_.format()) : false;
}
bool is_checker_imaged() const {
DCHECK(!resource_is_checker_imaged_ || resource_);
return resource_is_checker_imaged_;
......
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