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

Unified Diff: cc/paint/paint_op_buffer.h

Issue 2893083002: cc: Move SkShader construction to a single spot in PaintShader (Closed)
Patch Set: update 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
Index: cc/paint/paint_op_buffer.h
diff --git a/cc/paint/paint_op_buffer.h b/cc/paint/paint_op_buffer.h
index db9eaadcf22c8c8ffb89e4005e94ebb5f23d9718..5cc4f8c7f78a178614f60f2f88f4d1c67d9675ec 100644
--- a/cc/paint/paint_op_buffer.h
+++ b/cc/paint/paint_op_buffer.h
@@ -115,7 +115,7 @@ struct CC_PAINT_EXPORT PaintOpWithFlags : PaintOp {
if (!IsDrawOp())
return false;
- SkShader* shader = flags.getShader();
+ SkShader* shader = flags.getSkShader();
SkImage* image = shader ? shader->isAImage(nullptr, nullptr) : nullptr;
return image && image->isLazyGenerated();
}

Powered by Google App Engine
This is Rietveld 408576698