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

Side by Side Diff: gm/yuvtorgbeffect.cpp

Issue 947443003: Move clip off of draw target (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: feedback inc Created 5 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 unified diff | Download patch
« no previous file with comments | « gm/texturedomaineffect.cpp ('k') | gyp/gpu.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2014 Google Inc. 3 * Copyright 2014 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 // This test only works with the GPU backend. 9 // This test only works with the GPU backend.
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 texture[indices[i][1]], 116 texture[indices[i][1]],
117 texture[indices[i][2]], 117 texture[indices[i][2]],
118 sizes, 118 sizes,
119 static_cast<SkYUVColorSpace >(space))); 119 static_cast<SkYUVColorSpace >(space)));
120 if (fp) { 120 if (fp) {
121 SkMatrix viewMatrix; 121 SkMatrix viewMatrix;
122 viewMatrix.setTranslate(x, y); 122 viewMatrix.setTranslate(x, y);
123 GrPipelineBuilder pipelineBuilder; 123 GrPipelineBuilder pipelineBuilder;
124 pipelineBuilder.setRenderTarget(rt); 124 pipelineBuilder.setRenderTarget(rt);
125 pipelineBuilder.addColorProcessor(fp); 125 pipelineBuilder.addColorProcessor(fp);
126 tt.target()->drawSimpleRect(&pipelineBuilder, GrColor_WHITE, viewMatrix, 126 tt.target()->drawSimpleRect(&pipelineBuilder,
127 GrColor_WHITE,
128 viewMatrix,
127 renderRect); 129 renderRect);
128 } 130 }
129 x += renderRect.width() + kTestPad; 131 x += renderRect.width() + kTestPad;
130 } 132 }
131 } 133 }
132 } 134 }
133 135
134 private: 136 private:
135 SkBitmap fBmp[3]; 137 SkBitmap fBmp[3];
136 138
137 typedef GM INHERITED; 139 typedef GM INHERITED;
138 }; 140 };
139 141
140 DEF_GM( return SkNEW(YUVtoRGBEffect); ) 142 DEF_GM( return SkNEW(YUVtoRGBEffect); )
141 } 143 }
142 144
143 #endif 145 #endif
OLDNEW
« no previous file with comments | « gm/texturedomaineffect.cpp ('k') | gyp/gpu.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698