Lines Matching refs:allocator
22 TestStorageAllocator* allocator = static_cast<TestStorageAllocator*>(ctx);
23 if (!allocator->m_allowAllocation)
30 GR_GL_CALL(allocator->m_gl, GenTextures(1, &id));
31 GR_GL_CALL(allocator->m_gl, BindTexture(target, id));
32 GR_GL_CALL(allocator->m_gl, TexParameteri(target, GR_GL_TEXTURE_MAG_FILTER, GR_GL_NEAREST));
33 GR_GL_CALL(allocator->m_gl, TexParameteri(target, GR_GL_TEXTURE_MIN_FILTER, GR_GL_NEAREST));
34 GR_GL_CALL(allocator->m_gl, TexParameteri(target, GR_GL_TEXTURE_WRAP_S, GR_GL_CLAMP_TO_EDGE));
35 GR_GL_CALL(allocator->m_gl, TexParameteri(target, GR_GL_TEXTURE_WRAP_T, GR_GL_CLAMP_TO_EDGE));
36 GR_GL_CALL(allocator->m_gl, TexImage2D(target, 0, GR_GL_RGBA, width, height, 0, GR_GL_RGBA,
42 allocator->m_mostRecentlyAllocatedStorage = id;
46 TestStorageAllocator* allocator = static_cast<TestStorageAllocator*>(ctx);
48 GR_GL_CALL(allocator->m_gl, DeleteTextures(1, &(info->fID)));
61 TestStorageAllocator allocator;
62 allocator.m_allowAllocation = true;
63 allocator.m_gl = gl;
67 grAllocator.fCtx = &allocator;
73 GrGLuint id = allocator.m_mostRecentlyAllocatedStorage;
85 REPORTER_ASSERT(reporter, allocator.m_mostRecentlyAllocatedStorage != id);
96 TestStorageAllocator allocator;
97 allocator.m_allowAllocation = false;
98 allocator.m_gl = gl;
102 grAllocator.fCtx = &allocator;