| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2008, Google Inc. All rights reserved. | 2 * Copyright (c) 2008, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "core/platform/graphics/ImageObserver.h" | 45 #include "core/platform/graphics/ImageObserver.h" |
| 46 #include "core/platform/graphics/transforms/AffineTransform.h" | 46 #include "core/platform/graphics/transforms/AffineTransform.h" |
| 47 #include <wtf/text/WTFString.h> | 47 #include <wtf/text/WTFString.h> |
| 48 | 48 |
| 49 #include "skia/ext/image_operations.h" | 49 #include "skia/ext/image_operations.h" |
| 50 #include "skia/ext/platform_canvas.h" | 50 #include "skia/ext/platform_canvas.h" |
| 51 | 51 |
| 52 #include <math.h> | 52 #include <math.h> |
| 53 #include <limits> | 53 #include <limits> |
| 54 | 54 |
| 55 #include "TraceEvent.h" | 55 #include "core/platform/chromium/TraceEvent.h" |
| 56 | 56 |
| 57 namespace WebCore { | 57 namespace WebCore { |
| 58 | 58 |
| 59 // Used by computeResamplingMode to tell how bitmaps should be resampled. | 59 // Used by computeResamplingMode to tell how bitmaps should be resampled. |
| 60 enum ResamplingMode { | 60 enum ResamplingMode { |
| 61 // Nearest neighbor resampling. Used when we detect that the page is | 61 // Nearest neighbor resampling. Used when we detect that the page is |
| 62 // trying to make a pattern by stretching a small bitmap very large. | 62 // trying to make a pattern by stretching a small bitmap very large. |
| 63 RESAMPLE_NONE, | 63 RESAMPLE_NONE, |
| 64 | 64 |
| 65 // Default skia resampling. Used for large growing of images where high | 65 // Default skia resampling. Used for large growing of images where high |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 *bm, | 652 *bm, |
| 653 normSrcRect, | 653 normSrcRect, |
| 654 normDstRect, | 654 normDstRect, |
| 655 WebCoreCompositeToSkiaComposite(compositeOp)); | 655 WebCoreCompositeToSkiaComposite(compositeOp)); |
| 656 | 656 |
| 657 if (ImageObserver* observer = imageObserver()) | 657 if (ImageObserver* observer = imageObserver()) |
| 658 observer->didDraw(this); | 658 observer->didDraw(this); |
| 659 } | 659 } |
| 660 | 660 |
| 661 } // namespace WebCore | 661 } // namespace WebCore |
| OLD | NEW |