Home | History | Annotate | Download | only in tests

Lines Matching defs:texture

36         // let Skia know we will be using this texture as a render target
38 // it is a single channel texture
43 // We are initializing the texture with zeros here
44 GrTexture* texture = context->createUncachedTexture(desc, textureData, 0);
45 if (!texture) {
49 GrAutoUnref au(texture);
51 // create a distinctive texture
58 // upload the texture
59 texture->writePixels(0, 0, desc.fWidth, desc.fHeight, desc.fConfig,
67 // read the texture back
68 texture->readPixels(0, 0, desc.fWidth, desc.fHeight, desc.fConfig,
84 // Now try writing on the single channel texture
85 SkAutoTUnref<SkDevice> device(new SkGpuDevice(context, texture->asRenderTarget()));
96 texture->readPixels(0, 0, desc.fWidth, desc.fHeight, desc.fConfig,