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

Unified Diff: skia/sgl/SkBitmapProcState.cpp

Issue 20386: Fix the Facebook sidebar.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | « skia/sgl/SkBitmapProcState.h ('k') | skia/sgl/SkBitmapProcState_matrix.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/sgl/SkBitmapProcState.cpp
===================================================================
--- skia/sgl/SkBitmapProcState.cpp (revision 9831)
+++ skia/sgl/SkBitmapProcState.cpp (working copy)
@@ -296,8 +296,9 @@
}
const SkMatrix* m;
- if (SkShader::kClamp_TileMode == fTileModeX &&
- SkShader::kClamp_TileMode == fTileModeY) {
+ if (inv.getType() <= SkMatrix::kTranslate_Mask ||
+ (SkShader::kClamp_TileMode == fTileModeX &&
+ SkShader::kClamp_TileMode == fTileModeY)) {
m = &inv;
} else {
fUnitInvMatrix = inv;
« no previous file with comments | « skia/sgl/SkBitmapProcState.h ('k') | skia/sgl/SkBitmapProcState_matrix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698