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

Unified Diff: cc/paint/paint_shader.h

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_recorder.cc ('k') | cc/paint/record_paint_canvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/paint_shader.h
diff --git a/cc/paint/paint_shader.h b/cc/paint/paint_shader.h
index 6afdaa650de9f4b8d242364919350b1d9c24498e..019174443bb1470dbd448dd40f14ca7bbbcc3e70 100644
--- a/cc/paint/paint_shader.h
+++ b/cc/paint/paint_shader.h
@@ -24,12 +24,12 @@ inline sk_sp<PaintShader> MakePaintShaderImage(sk_sp<const SkImage> image,
}
inline sk_sp<PaintShader> MakePaintShaderRecord(sk_sp<PaintRecord> record,
+ const SkRect& tile,
SkShader::TileMode tx,
SkShader::TileMode ty,
- const SkMatrix* local_matrix,
- const SkRect* tile) {
- return SkShader::MakePictureShader(ToSkPicture(record), tx, ty, local_matrix,
- tile);
+ const SkMatrix* local_matrix) {
+ return SkShader::MakePictureShader(ToSkPicture(record, tile), tx, ty,
+ local_matrix, nullptr);
}
} // namespace cc
« no previous file with comments | « cc/paint/paint_recorder.cc ('k') | cc/paint/record_paint_canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698