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

Unified Diff: src/image/SkImage.cpp

Issue 1570133003: Fix SkTileImageFilter when srcRect is a superset of bitmap bounds. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Win32 fix Created 4 years, 11 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
Index: src/image/SkImage.cpp
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp
index 32844b474fe370d936fbfa4865555c7356bbada9..b3fc6bab587dbe503fb1178946e9158aa1f166b7 100644
--- a/src/image/SkImage.cpp
+++ b/src/image/SkImage.cpp
@@ -116,7 +116,7 @@ static SkIRect compute_fast_ibounds(SkImageFilter* filter, const SkIRect& srcBou
class SkRasterImageFilterProxy : public SkImageFilter::Proxy {
public:
- SkBaseDevice* createDevice(int width, int height) override {
+ SkBaseDevice* createDevice(int width, int height, bool tile = false) override {
reed1 2016/01/10 02:25:02 I think default args on overrides are very tricky,
return SkBitmapDevice::Create(SkImageInfo::MakeN32Premul(width, height));
}

Powered by Google App Engine
This is Rietveld 408576698