Index: bench/SkLinearBitmapPipelineBench.cpp |
diff --git a/bench/SkLinearBitmapPipelineBench.cpp b/bench/SkLinearBitmapPipelineBench.cpp |
index 0fc2ac6a2657f04e70ae1aa0e1738339c4fe190c..8a4ba2cef9a0fda1e23bde7ea55d461f97747ff3 100644 |
--- a/bench/SkLinearBitmapPipelineBench.cpp |
+++ b/bench/SkLinearBitmapPipelineBench.cpp |
@@ -196,10 +196,9 @@ 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); |
+ SkASSERT(fPaint.getShader()->contextSize(rec) <= sizeof(storage)); |
+ SkShader::Context* ctx = fPaint.getShader()->createContext(rec, storage); |
int count = 100; |