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

Unified Diff: cc/paint/paint_record.cc

Issue 2889653002: Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: movecullrect2 rebase-once-and-for-all Created 3 years, 7 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 | « cc/paint/paint_record.h ('k') | cc/paint/paint_recorder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/paint_record.cc
diff --git a/cc/paint/paint_record.cc b/cc/paint/paint_record.cc
index 52cb2524acc7281e460844806d181c9a24bf26d0..2483006891342182c555a2c39b56b84f7765dd6c 100644
--- a/cc/paint/paint_record.cc
+++ b/cc/paint/paint_record.cc
@@ -9,16 +9,17 @@
namespace cc {
-sk_sp<SkPicture> ToSkPicture(sk_sp<PaintRecord> record) {
+sk_sp<SkPicture> ToSkPicture(sk_sp<PaintRecord> record, const SkRect& bounds) {
SkPictureRecorder recorder;
- SkCanvas* canvas = recorder.beginRecording(record->cullRect());
+ SkCanvas* canvas = recorder.beginRecording(bounds);
record->playback(canvas);
return recorder.finishRecordingAsPicture();
}
-sk_sp<const SkPicture> ToSkPicture(sk_sp<const PaintRecord> record) {
+sk_sp<const SkPicture> ToSkPicture(sk_sp<const PaintRecord> record,
+ const SkRect& bounds) {
SkPictureRecorder recorder;
- SkCanvas* canvas = recorder.beginRecording(record->cullRect());
+ SkCanvas* canvas = recorder.beginRecording(bounds);
record->playback(canvas);
return recorder.finishRecordingAsPicture();
}
« no previous file with comments | « cc/paint/paint_record.h ('k') | cc/paint/paint_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698