| Index: cc/resource_provider.h
|
| diff --git a/cc/resource_provider.h b/cc/resource_provider.h
|
| index af271eb702277502879f4cfa8397947d670c7777..56c0f8d71819a1cbc3d74638f6f542aa5b87178f 100644
|
| --- a/cc/resource_provider.h
|
| +++ b/cc/resource_provider.h
|
| @@ -236,6 +236,10 @@ public:
|
| void beginSetPixels(ResourceId id);
|
| bool didSetPixelsComplete(ResourceId id);
|
|
|
| + // For tests only! This prevents detecting uninitialized reads.
|
| + // Use setPixels or lockForWrite to allocate implicitly.
|
| + void allocateForTesting(ResourceId id);
|
| +
|
| private:
|
| struct Resource {
|
| Resource();
|
| @@ -258,6 +262,7 @@ private:
|
| bool exported;
|
| bool markedForDeletion;
|
| bool pendingSetPixels;
|
| + bool allocated;
|
| gfx::Size size;
|
| GLenum format;
|
| // TODO(skyostil): Use a separate sampler object for filter state.
|
| @@ -285,6 +290,7 @@ private:
|
|
|
| bool transferResource(WebKit::WebGraphicsContext3D*, ResourceId, TransferableResource*);
|
| void deleteResourceInternal(ResourceMap::iterator it);
|
| + void lazyAllocate(Resource*);
|
|
|
| OutputSurface* m_outputSurface;
|
| ResourceId m_nextId;
|
|
|