| Index: src/gpu/GrContext.cpp
|
| ===================================================================
|
| --- src/gpu/GrContext.cpp (revision 9928)
|
| +++ src/gpu/GrContext.cpp (working copy)
|
| @@ -541,6 +541,20 @@
|
| }
|
| }
|
|
|
| +bool GrContext::OverbudgetCB(void* data) {
|
| + GrAssert(NULL != data);
|
| +
|
| + GrContext* context = reinterpret_cast<GrContext*>(data);
|
| +
|
| + // Flush the InOrderDrawBuffer to possibly free up some textures
|
| + context->flush();
|
| +
|
| + // TODO: actually track flush's behavior rather than always just
|
| + // returning true.
|
| + return true;
|
| +}
|
| +
|
| +
|
| GrTexture* GrContext::createUncachedTexture(const GrTextureDesc& descIn,
|
| void* srcData,
|
| size_t rowBytes) {
|
|
|