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

Unified Diff: src/core/SkPictureRecord.cpp

Issue 480463004: Quickfix for incorrect PICTURE_MATRIX_PAINT & PATCH optimization. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPictureRecord.cpp
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp
index b79b185b2d04a04d9d37a49e479e0591eb8abe7e..dd8040071f999f0eb1882b9b729d6cd43ee9cb0f 100644
--- a/src/core/SkPictureRecord.cpp
+++ b/src/core/SkPictureRecord.cpp
@@ -457,7 +457,12 @@ static bool remove_save_layer2(SkWriter32* writer, int32_t offset,
}
static bool is_drawing_op(DrawType op) {
- return (op > CONCAT && op < ROTATE) || DRAW_DRRECT == op;
+
+ // FIXME: yuck. convert to a lookup table?
+ return (op > CONCAT && op < ROTATE)
+ || DRAW_DRRECT == op
+ || DRAW_PATCH == op
+ || DRAW_PICTURE_MATRIX_PAINT == op;
}
/*
« 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