Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(934)

Unified Diff: cc/raster/tile_task_worker_pool.cc

Issue 1303033002: asABitmap is deprecated, switch over to (simpler) isABitmap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | skia/ext/pixel_ref_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/tile_task_worker_pool.cc
diff --git a/cc/raster/tile_task_worker_pool.cc b/cc/raster/tile_task_worker_pool.cc
index 8829e2c6881681bcfc8e029f344988ffcdac2a87..05293fa7f3b6f59666542b83796b25773f208d33 100644
--- a/cc/raster/tile_task_worker_pool.cc
+++ b/cc/raster/tile_task_worker_pool.cc
@@ -161,14 +161,7 @@ class SkipImageFilter : public SkDrawFilter {
return false;
SkShader* shader = paint->getShader();
- if (!shader)
- return true;
- SkShader::BitmapType bitmap_type =
- shader->asABitmap(nullptr, nullptr, nullptr);
- // The kDefault_BitmapType is returned for images. Other bitmap types are
- // simply bitmap representations of colors such as gradients. So, we can
- // return true and draw for any case except kDefault_BitmapType.
- return bitmap_type != SkShader::kDefault_BitmapType;
+ return !shader || !shader->isABitmap();
}
};
« no previous file with comments | « no previous file | skia/ext/pixel_ref_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698