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

Unified Diff: src/core/SkPicture.cpp

Issue 1235953004: Preserve SKP cullrects on deserialization (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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 | tests/PictureTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPicture.cpp
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp
index 1a8de22907b40822f2911cfa66f8e7a991103fce..02d495e4c6955d9a5308ee46e0e6c8a0aa52f521 100644
--- a/src/core/SkPicture.cpp
+++ b/src/core/SkPicture.cpp
@@ -134,9 +134,7 @@ SkPicture* SkPicture::Forwardport(const SkPictInfo& info, const SkPictureData* d
}
SkPicturePlayback playback(data);
SkPictureRecorder r;
- playback.draw(r.beginRecording(SkScalarCeilToInt(info.fCullRect.width()),
- SkScalarCeilToInt(info.fCullRect.height())),
- nullptr/*no callback*/);
+ playback.draw(r.beginRecording(info.fCullRect), nullptr/*no callback*/);
return r.endRecording();
}
« no previous file with comments | « no previous file | tests/PictureTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698