Chromium Code Reviews| Index: cc/resource_provider.h |
| diff --git a/cc/resource_provider.h b/cc/resource_provider.h |
| index e75cda6e56807310ae874131492fed7a03a04519..18e8d1bd5e7a5e269796aca6c3ef48ce00b5f300 100644 |
| --- a/cc/resource_provider.h |
| +++ b/cc/resource_provider.h |
| @@ -197,6 +197,14 @@ public: |
| DISALLOW_COPY_AND_ASSIGN(ScopedWriteLockSoftware); |
| }; |
| + // Async setPixels API. |
| + void acquirePixelBuffer(ResourceId id); |
| + void releasePixelBuffer(ResourceId id); |
| + uint8_t* mapPixelBuffer(ResourceId id); |
| + void unmapPixelBuffer(ResourceId id); |
| + void scheduleSetPixels(ResourceId id); |
|
nduca
2012/11/17 17:10:30
beginSetPixels?
reveman
2012/11/18 18:15:59
Done.
|
| + bool didSetPixelsComplete(ResourceId id); |
| + |
| private: |
| struct Resource { |
| Resource(); |
| @@ -204,8 +212,11 @@ private: |
| Resource(uint8_t* pixels, int pool, const gfx::Size& size, GLenum format); |
| unsigned glId; |
| + unsigned glPixelBufferId; |
|
nduca
2012/11/17 17:10:30
would comments on these vars help indicate that th
reveman
2012/11/18 18:15:59
Done.
|
| + unsigned glUploadQueryId; |
| Mailbox mailbox; |
| uint8_t* pixels; |
| + uint8_t* pixelBuffer; |
| int pool; |
| int lockForReadCount; |
| bool lockedForWrite; |