Guest User

Untitled

a guest
Jun 25th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. Index: /home/caron/workspace/avx8_froyo/lgf/mydroid/external/webkit/WebCore/platform/graphics/skia/ImageSkia.cpp
  2. ===================================================================
  3. --- /home/caron/workspace/avx8_froyo/lgf/mydroid/external/webkit/WebCore/platform/graphics/skia/ImageSkia.cpp (révision 79694)
  4. +++ /home/caron/workspace/avx8_froyo/lgf/mydroid/external/webkit/WebCore/platform/graphics/skia/ImageSkia.cpp (copie de travail)
  5. @@ -219,7 +219,6 @@
  6. {
  7. SkPaint paint;
  8. paint.setXfermodeMode(compOp);
  9. - paint.setFilterBitmap(true);
  10. int alpha = roundf(platformContext->getAlpha() * 256);
  11. if (alpha > 255)
  12. alpha = 255;
  13. @@ -236,6 +235,8 @@
  14. if (resampling == RESAMPLE_AWESOME) {
  15. drawResampledBitmap(*canvas, paint, bitmap, srcRect, destRect);
  16. } else {
  17. + if (resampling == RESAMPLE_LINEAR) paint.setFilterBitmap(true);
  18. + else paint.setFilterBitmap(false);
  19. // No resampling necessary, we can just draw the bitmap. We want to
  20. // filter it if we decided to do linear interpolation above, or if there
  21. // is something interesting going on with the matrix (like a rotation).
Advertisement
Add Comment
Please, Sign In to add comment