Home | History | Annotate | Download | only in gpu

Lines Matching full:texture

153  *          a scratch key for multiple render-to-texture scenarios. An example is a separable blur:
155 * GrTexture* texture[2];
156 * texture[0] = get_scratch_texture(scratchKey);
157 * texture[1] = get_scratch_texture(scratchKey); // texture[0] is already owned so we will get a
158 * // different one for texture[1]
159 * draw_mask(texture[0], path); // draws path mask to texture[0]
160 * blur_x(texture[0], texture[1]); // blurs texture[0] in y and stores result in texture[1]
161 * blur_y(texture[1], texture[0]); // blurs texture[1] in y and stores result in texture[0]
162 * texture[1]->unref(); // texture 1 can now be recycled for the next request with scratchKey
163 * consume_blur(texture[0]);
164 * texture[0]->unref(); // texture 0 can now be recycled for the next request with scratchKey