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

Unified Diff: bench/SkLinearBitmapPipelineBench.cpp

Issue 1720933002: Add ContextRec param to SkShader::contextSize() (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: ContextRec plumbing only Created 4 years, 10 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 | « no previous file | experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698