Index: bench/SkLinearBitmapPipelineBench.cpp |
diff --git a/bench/SkLinearBitmapPipelineBench.cpp b/bench/SkLinearBitmapPipelineBench.cpp |
index 0fc2ac6a2657f04e70ae1aa0e1738339c4fe190c..491e94cff98ad013237e583d8b568bb9bb27be68 100644 |
--- a/bench/SkLinearBitmapPipelineBench.cpp |
+++ b/bench/SkLinearBitmapPipelineBench.cpp |
@@ -196,10 +196,10 @@ struct SkBitmapFPOrigShader : public CommonBitmapFPBenchmark { |
SkAutoTMalloc<SkPMColor> buffer4b(width*height); |
uint32_t storage[200]; |
- SkASSERT(fPaint.getShader()->contextSize() <= sizeof(storage)); |
- SkShader::Context* ctx = fPaint.getShader()->createContext( |
- {fPaint, fM, nullptr}, |
- storage); |
+ const SkShader::ContextRec rec(fPaint, fM, nullptr, |
+ kN32_SkColorType, kLinear_SkColorProfileType); |
+ SkASSERT(fPaint.getShader()->contextSize(rec) <= sizeof(storage)); |
+ SkShader::Context* ctx = fPaint.getShader()->createContext(rec, storage); |
int count = 100; |