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

Unified Diff: src/core/SkSpecialSurface.cpp

Issue 1878143004: Make SkSpecialSurfaces always use kUnknown for their pixel geometry (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | src/effects/SkPictureImageFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkSpecialSurface.cpp
diff --git a/src/core/SkSpecialSurface.cpp b/src/core/SkSpecialSurface.cpp
index 7dced71eb2c8ddbdc1bf720a3655e4af1f215310..83a0ee7a19cec041198f7e5ea0974af7a2b40122 100644
--- a/src/core/SkSpecialSurface.cpp
+++ b/src/core/SkSpecialSurface.cpp
@@ -44,7 +44,7 @@ static SkSpecialSurface_Base* as_SB(SkSpecialSurface* surface) {
SkSpecialSurface::SkSpecialSurface(SkImageFilter::Proxy* proxy,
const SkIRect& subset,
const SkSurfaceProps* props)
- : fProps(SkSurfacePropsCopyOrDefault(props))
+ : fProps(SkSurfacePropsCopyOrDefault(props).flags(), kUnknown_SkPixelGeometry)
, fSubset(subset)
, fProxy(proxy) {
SkASSERT(fSubset.width() > 0);
@@ -76,7 +76,7 @@ public:
fBitmap.setInfo(info, info.minRowBytes());
fBitmap.setPixelRef(pr);
- fCanvas.reset(new SkCanvas(fBitmap));
+ fCanvas.reset(new SkCanvas(fBitmap, this->props()));
}
~SkSpecialSurface_Raster() override { }
« no previous file with comments | « no previous file | src/effects/SkPictureImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698