aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-07-09 07:31:31 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-09 07:31:32 -0700
commit2cdec31c29a6ba1a6927b3ee2325bf53b86796aa (patch)
treedb9d14da67043d156ca7e02c21e375d29946caa2 /gm
parent8d3f7bde942ed42a4bbe86624f084f3d6bc37c1a (diff)
YUV to RGB Texture threading GrProcessorDataManager
Diffstat (limited to 'gm')
-rw-r--r--gm/yuvtorgbeffect.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gm/yuvtorgbeffect.cpp b/gm/yuvtorgbeffect.cpp
index 62855cfbbb..0da1b24116 100644
--- a/gm/yuvtorgbeffect.cpp
+++ b/gm/yuvtorgbeffect.cpp
@@ -111,8 +111,10 @@ protected:
{1, 2, 0}, {2, 0, 1}, {2, 1, 0}};
for (int i = 0; i < 6; ++i) {
+ GrPipelineBuilder pipelineBuilder;
SkAutoTUnref<GrFragmentProcessor> fp(
- GrYUVtoRGBEffect::Create(texture[indices[i][0]],
+ GrYUVtoRGBEffect::Create(pipelineBuilder.getProcessorDataManager(),
+ texture[indices[i][0]],
texture[indices[i][1]],
texture[indices[i][2]],
sizes,
@@ -120,7 +122,6 @@ protected:
if (fp) {
SkMatrix viewMatrix;
viewMatrix.setTranslate(x, y);
- GrPipelineBuilder pipelineBuilder;
pipelineBuilder.setRenderTarget(rt);
pipelineBuilder.addColorProcessor(fp);
tt.target()->drawSimpleRect(&pipelineBuilder,