| Index: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
|
| diff --git a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
|
| index 7025234cad0bc6311574752511096c81c41e4c10..4a16261a223c407f2d3b640ac86a4f2bd0db5ef4 100644
|
| --- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
|
| +++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
|
| @@ -47,6 +47,16 @@ public:
|
| bool originClean() const;
|
| void setOriginTainted() { m_originClean = false; }
|
|
|
| + void setSurfaceId(uint32_t clientId, uint32_t localId, uint64_t nonce)
|
| + {
|
| + m_clientId = clientId;
|
| + m_localId = localId;
|
| + m_nonce = nonce;
|
| + }
|
| + uint32_t clientId() const { return m_clientId; }
|
| + uint32_t localId() const { return m_localId; }
|
| + uint64_t nonce() const { return m_nonce; }
|
| +
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| private:
|
| @@ -62,6 +72,12 @@ private:
|
| bool m_isNeutered = false;
|
|
|
| bool m_originClean;
|
| +
|
| + // cc::SurfaceId is broken into three integer components as this can be used
|
| + // in transfer of OffscreenCanvas across threads
|
| + uint32_t m_clientId;
|
| + uint32_t m_localId;
|
| + uint64_t m_nonce;
|
| };
|
|
|
| } // namespace blink
|
|
|