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

Unified Diff: src/core/SkCanvas.cpp

Issue 2388873002: remove quickreject for drawables (Closed)
Patch Set: Created 4 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkCanvas.cpp
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 7597c7a07a7ec4a62c3484d5aad00e9828fbd756..c55ca10f77786c9aa18f30a8fc7e2c7ae55f1c94 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -2954,13 +2954,8 @@ void SkCanvas::drawDrawable(SkDrawable* dr, const SkMatrix* matrix) {
}
void SkCanvas::onDrawDrawable(SkDrawable* dr, const SkMatrix* matrix) {
- SkRect bounds = dr->getBounds();
- if (matrix) {
- matrix->mapRect(&bounds);
- }
- if (this->quickReject(bounds)) {
- return;
- }
+ // drawable bounds are no longer reliable (e.g. android displaylist)
+ // so don't use them for quick-reject
dr->draw(this, matrix);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698